Selectable JTAG or trace access with data store and output

ABSTRACT

An addressable interface selectively enables JTAG TAP domain operations or Trace domain operations within an IC. After being enabled, the TAP receives TMS and TDI input from a single data pin. After being enabled, the Trace domain acquires data from a functioning circuit within the IC in response to a first clock and outputs the acquired data from the IC in response to a second clock. An addressable two pin interface loads and updates instructions and data to a TAP domain within the IC. The instruction or data update operations in multiple ICs occur simultaneously. A process transmits data from an addressed target device to a controller using data frames, each data frame comprising a header bit and data bits. The logic level of the header bit is used to start, continue, and stop the data transmission to the controller. A data and clock signal interface between a controller and multiple target devices provides for each target device to be individually addressed and commanded to perform a JTAG or Trace operation. Trace circuitry within an IC can operate autonomously to store and output functional data occurring in the IC. The store and output operations of the trace circuitry are transparent to the functional operation of the IC. An auto-addressing RAM memory stores input data at an input address generated in response to an input clock, and outputs stored data from an output address generated in response to an output clock.

CROSS-REFERENCE TO RELATED APPLICATIONS

This Application is a divisional of prior application Ser. No.12/493,881, filed Jun. 29, 2009, currently pending;

which was a divisional of prior application Ser. No. 11/463,479, filedAug. 9, 2006, now U.S. Pat. No. 7,571,364, granted Aug. 4, 2009;

which claimed priority from Provisional Application No. 60/706,633,filed Aug. 9, 2005.

This disclosure is related to the following pending US patentapplications and patents:

application Ser. No. 11/292,643, filed Dec. 2, 2005, now U.S. Pat. No.7,308,629, granted Dec. 11, 2007;

application Ser. No. 11/293,061, filed Dec. 2, 2005, now U.S. Pat. No.7,328,387, granted Feb. 5, 2008;

application Ser. No. 11/258,315, filed Oct. 25, 2005;

application Ser. No. 08/918,872, filed Aug. 26, 1997, now U.S. Pat. No.6,073,254, granted Jun. 6, 2000;

application Ser. No. 11/292,597, filed Dec. 2, 2005, now U.S. Pat. No.7,571,366, granted Aug. 4, 2009;

application Ser. No. 08/427,947, filed Apr. 24, 1995, now U.S. Pat. No.5,483,518, granted Jan. 9, 1996;

application Ser. No. 11/370,017, filed Mar. 7, 2006, now U.S. Pat. No.7,421,633, granted Sep. 2, 2008;

application Ser. No. 07/308,272, filed Feb. 8, 1989, now U.S. Pat. No.5,001,713, granted Mar. 19, 1991;

application Ser. No. 07/668,715, filed Mar. 12, 1991, now U.S. Pat. No.5,103,450, granted Apr. 7, 1992;

application Ser. No. 08/542,746, filed Oct. 13, 1995, now U.S. Pat. No.5,623,500, granted Apr. 22, 1997;

application Ser. No. 08/134,510, filed Oct. 8, 1993; now U.S. Pat. No.5,353,308, granted Oct. 4, 1994; and

application Ser. No. 08/929,389, filed Sep. 15, 1997, now U.S. Pat. No.5,905,738, granted May 18, 1999.

BACKGROUND OF THE DISCLOSURE

This disclosure relates in general to IC signal interfaces and inparticular to IC signal interfaces related to JTAG based test,emulation, debug, and trace operations. This disclosure is a furtherdevelopment of a previous disclosure (TI-60187) titled “Optimized JTAGInterface”. The previous material of TI-60187 is completely incorporatedinto this new disclosure. The new material of this disclosure startswith FIG. 29.

DESCRIPTION OF THE RELATED ART

FIG. 1 illustrates a conventional 5 wire JTAG interface 106 between anexternal JTAG controller 100 and Tap Domains 104 within a target IC 102.Modern day ICs typically have a Tap Domain associated with the IC's JTAGboundary scan test operations and/or one or more Tap Domains associatedwith each one or more core circuits designed into the IC. The interfacecouples the TDO output of JTAG controller to the IC's TDI pin input, theTMS output of the JTAG controller to the IC's TMS pin input, the TCKoutput of the JTAG controller to the IC's TCK pin input, the TDI inputof the JTAG controller to the IC's TDO pin output, and the TRST outputof the JTAG controller to the IC's TRST pin input. The IC's TDI, TDO,TMS, TCK, and TRST pins 108 are dedicated for interfacing to the JTAGcontroller and cannot be used functionally.

In response to the TMS and TCK signals, the Tap Domains 104 of IC 102communicates data to and from the JTAG controller via the TDO to TDIconnections. A low output on the JTAG controller's TRST output causesthe Tap Domains of IC 102 to enter a reset state. The JTAG controllerreceives a clock input (CKIN) from a clock source 110. The CKIN inputtimes the operation of the JTAG controller, which in turn times theoperation of the Tap Domains in IC 102. The JTAG controller can be usedto perform test, emulation, debug, and trace operations in the target ICby accessing the embedded Tap Domains via the 5 wire interface. Thearrangement between the JTAG controller and the target IC and its use inperforming test, emulation, debug, and trace operations is well known inthe industry.

FIG. 2 illustrates an alternate arrangement whereby a JTAG controller200 is interfaced to a target IC 202 via the JTAG bus 108 and aDebug/Trace bus 204. The JTAG controller 200 differs from the JTAGcontroller of FIG. 1 in that it includes additional circuitry andinput/outputs for interfacing to the IC's Debug/Trace circuitry 204. Asin FIG. 1, the JTAG bus 108 is coupled to Tap Domains 104 within the ICvia IC pins 108. The Debug/Trace bus 204 is coupled to Debug/Tracecircuitry 206 within the IC via N IC pins 208. The JTAG bus is used toinput commands and data that enable the Debug/Trace circuitry to performdebug and/or trace operations. The Debug/Trace bus signals can be usedfor a myriad of operations including but not limited to; (1) importingand/or exporting data between the JTAG controller 200 and Debug/Tracecircuitry 206 during debug and/or trace operations, (2) operating as acommunications bus between the JTAG controller 200 and Debug/Tracecircuitry 206, and (3) inputting and/or outputting trigger signalsbetween the JTAG controller 200 and Debug/Trace circuitry 206 duringdebug and trace operations.

One of the key advantages of the debug/trace bus 204 is that itincreases the data input/output bandwidth between the JTAG controllerand target IC during debug/trace operation over what is possible usingonly the 5 wire JTAG bus 106. For example, the data input/outputbandwidth of the JTAG bus is limited to the amount of data that can flowbetween the JTAG controller and IC over the single TDO to TDI signalwire connections. Since the debug/trace bus can have N signal wireconnections between the JTAG controller and IC (N), its data bandwidthcan be much greater than the JTAG bus bandwidth. Increased databandwidth between the JTAG controller and IC facilitates debug/traceoperations such as; (1) monitoring real time code execution, (2)accessing embedded memories, (3) uploading/downloading code duringprogram debug, and (4) triggered output trace functions.

With the current trend towards smaller IC packaging to allow more ICs tobe placed on smaller assemblies used in mobile applications, such ascell phones and personal digital assistants, the number of IC pins isbeing reduced. The present disclosure provides a reduced pin countinterface on ICs for test, emulation, debug, and trace operations; thiswill allow more IC pins to be available for functional purposes. Whileit is advantageous to reduce the pin counts of both the JTAG andDebug/Trace buses of FIGS. 1 and 2, the disclosure of this applicationfocuses on reducing the JTAG bus pins of an IC.

In addition to reducing the JTAG bus pins of an IC, a second aspect ofthe present disclosure is to maintain a high communication bandwidthover the reduced JTAG pins. As will be shown, the present disclosureprovides a data communication bandwidth using the reduced JTAG pins thatis equal to one half the data communication bandwidth using a full setof JTAG pins. For example, if the JTAG controller 100 can communicatedata to and from Tap Domains 104 of FIG. 1 at 100 Mhz using the fullJTAG bus 106, a JTAG controller adapted according to the presentdisclosure can communicate data to and from Tap Domains 104 of an IC,also adapted according to the present disclosure, at 50 Mhz.

One prior art technique, referenced herein, is called the J-Link System.The J-Link system provides a way to reduce the JTAG pins of an IC fromthe standard five pins to a reduced set of one or two pins. In a chartshown in the J-Link reference, it is seen that the J-Link interfaceprovides a data communication bandwidth that is one sixth that of theconventional JTAG 5 pin interface. For example and as stated in theJ-Link reference, if the standard 5 pin JTAG interface can operate at 48Mhz, the J-Link interface operates at one sixth of the 48 Mhz frequency,or at 8 Mhz. In comparison and as will be shown herein, if the standard5 pin JTAG interface can operate at 48 Mhz, the reduce pin approach ofthe present disclosure can operate at one half the 48 Mhz frequency, orat 24 Mhz. Thus the present disclosure provides a three timesimprovement in operating frequency over the referenced J-Link approach.The present disclosure is therefore capable of performing operationsrelated to IC test, debug, emulation, and trace at three times thebandwidth of the referenced J-Link approach.

SUMMARY OF THE DISCLOSURE

The present disclosure provides a reduced pin interface for JTAG basedtest, emulation, debug, and trace transactions between a JTAG controllerand a target IC.

An addressable interface selectively enables JTAG TAP domain operationsor Trace domain operations within an IC. After being enabled, the TAPreceives TMS and TDI input from a single data pin. After being enabled,the Trace domain acquires data from a functioning circuit within the ICin response to a first clock and outputs the acquired data from the ICin response to a second clock.

An addressable two pin interface loads and updates instructions and datato a TAP domain within the IC. The instruction or data update operationsin multiple ICs occur simultaneously.

A process transmits data from an addressed target device to a controllerusing data frames, each data frame comprising a header bit and databits. The logic level of the header bit is used to start, continue, andstop the data transmission to the controller.

A data and clock signal interface between a controller and multipletarget devices provides for each target device to be individuallyaddressed and commanded to perform a JTAG or Trace operation.

Trace circuitry within an IC can operate autonomously to store andoutput functional data occurring in the IC. The store and outputoperations of the trace circuitry are transparent to the functionaloperation of the IC.

An auto-addressing RAM memory stores input data at an input addressgenerated in response to an input clock, and outputs stored data from anoutput address generated in response to an output clock.

DESCRIPTION OF THE VIEWS OF THE DRAWINGS

FIG. 1 illustrates a conventional 5 signal interface between a JTAGcontroller and target IC.

FIG. 2 illustrates a conventional JTAG controller interfaced to a targetIC via a 5 signal JTAG bus and an N signal Debug/Trace bus.

FIG. 3 illustrates a JTAG controller interfaced to a target IC via a 2signal JTAG bus according to the present disclosure.

FIGS. 4A-4C illustrate various conventional Tap Domain arrangementswithin a target IC.

FIG. 5A illustrates a circuit example of the parallel to serialcontroller (PSC) circuit of the present disclosure.

FIG. 5B illustrates a timing diagram of the operation of the PSC circuitof FIG. 5A.

FIG. 6A illustrates a circuit example of the controller within the PSCcircuit of FIG. 5A.

FIG. 6B illustrates a timing diagram of the operation of the controllerof FIG. 6A.

FIG. 7A illustrates a circuit example of the serial to parallelcontroller (SPC) circuit of the present disclosure.

FIG. 7B illustrates a timing diagram of the operation of the SPC circuitof FIG. 7A.

FIG. 8A illustrates a circuit example of the controller within the SPCcircuit of FIG. 7A.

FIG. 8B illustrates a timing diagram of the operation of the controllerof FIG. 8A.

FIG. 9A illustrates a circuit example of the master reset andsynchronizer (MRS) circuit within the SPC circuit of FIG. 7A.

FIG. 9B illustrates a state diagram of the operation of the MRS circuitof FIG. 9A.

FIG. 9C illustrates a timing diagram of the operation of the MRS circuitof FIG. 9A.

FIG. 10 illustrates the state diagram of the IEEE standard 1149.1 Tapcontroller state machine.

FIG. 11A illustrates a circuit example of the input/output (I/O)circuits within the PSC and SPC circuits.

FIG. 11B illustrates the signaling cases for the I/O circuits of FIG.11A.

FIG. 12 illustrates each signaling case of FIG. 11B in more detail.

FIG. 13A illustrates an example circuit for determining the appropriateTDI or IN signal output of the I/O circuits of FIG. 11.

FIG. 13B illustrates the truth table used for determining theappropriate TDI or IN signal output based on the voltage level of thedata I/O (DIO) signal.

FIG. 14A illustrates the 2 signal connection between the PSC of the JTAGcontroller and the SPC of the target IC according to the presentdisclosure.

FIG. 14B illustrates a timing diagram of the operation of the PSC andSPC circuits of FIG. 14A performing JTAG transactions between the JTAGcontroller and the Tap Domains of the target IC.

FIG. 14C illustrates a timing diagram of the operation of the PSC andSPC circuits of FIG. 14A performing a single bit data register scanbetween the JTAG controller and the Tap Domains of the target IC.

FIG. 15 illustrates a Texas Instruments SN74ACT8990 JTAG bus controllerchip operating to compensate for cable delays.

FIG. 16 illustrates a 2 pin realization of the present disclosurewhereby the CLK signal is driven by a clock source within the JTAGcontroller.

FIG. 17 illustrates a 2 pin realization of the present disclosurewhereby the CLK signal is driven by an internal clock source of thetarget IC.

FIG. 18 illustrates a 1 pin realization of the present disclosurewhereby the CLK signal is driven by an external clock source thatfunctionally inputs to the target IC.

FIG. 19 illustrates a 1 pin realization of the present disclosurewhereby the CLK signal is driven by an internal clock source of thetarget IC that functionally outputs from the IC.

FIG. 20 illustrates a 2 pin realization of the present disclosurewhereby the CLK signal is driven by an clock source external of the JTAGcontroller and target IC.

FIG. 21A illustrates an alternate circuit example of the parallel toserial controller (PSC) circuit of the present disclosure.

FIG. 21B illustrates a timing diagram of the operation of the alternatePSC circuit of FIG. 5A.

FIG. 22A illustrates an alternate circuit example of the serial toparallel controller (SPC) circuit of the present disclosure.

FIG. 22B illustrates a timing diagram of the operation of the SPCcircuit of FIG. 7A.

FIG. 23A illustrates the 3 signal connection between the FIG. 21Aalternate PSC of the JTAG controller and the FIG. 22A alternate SPC ofthe target IC of according to the present disclosure.

FIG. 23B illustrates a timing diagram of the operation of the alternateFIG. 21A PSC and FIG. 22A SPC circuits performing JTAG transactionsbetween the JTAG controller and the Tap Domains of the target IC.

FIG. 24 illustrates a 3 pin realization of the alternate version of thepresent disclosure whereby the CLK signal is driven by a clock sourcewithin the JTAG controller.

FIG. 25 illustrates a 3 pin realization of the alternate version of thepresent disclosure whereby the CLK signal is driven by an internal clocksource of the target IC.

FIG. 26 illustrates a 2 pin realization of the alternate version of thepresent disclosure whereby the CLK signal is driven by an external clocksource that functionally inputs to the target IC.

FIG. 27 illustrates a 2 pin realization of the alternate version of thepresent disclosure whereby the CLK signal is driven by an internal clocksource of the target IC that functionally outputs from the IC.

FIG. 28 illustrates a 3 pin realization of the alternate version of thepresent disclosure whereby the CLK signal is driven by an clock sourceexternal of the JTAG controller and target IC.

FIG. 29 illustrates an arrangement of target devices connected to a JTAGcontroller, each target device being addressable for communication withthe controller via the DIO and CLK bus.

FIG. 30 illustrates a target device comprising an Address and CommandPort (ACP), Trace Domains, and TAP domains.

FIG. 31A illustrates a target device comprising an Address and CommandPort, Trace Domains, and TAP domains, each Trace Domain being coupled toa TAP Domain.

FIG. 31B illustrates a target device comprising an Address and CommandPort, Trace Domains, and TAP domains, all Trace Domains coupled to asingle TAP Domain.

FIG. 32 illustrates a TAP State Machine having outputs for outputtingShiftDR, Run Test/Idle (RTI), Pause (PSE), Output Enable (OE), and Reset(RST) signals.

FIG. 33 illustrates the Master Controller of the Address and CommandPort.

FIG. 34 illustrates the high level block diagram operation of the MasterController of FIG. 33.

FIG. 35 illustrates the state diagram of the Master Reset andSynchronization block of the Master Controller.

FIG. 36 illustrates the state diagram of the Input Address and Commandblock of the Master Controller.

FIG. 37 illustrates an ACP timing example of selecting a JTAG operationin the Run Test/Idle state.

FIG. 38 illustrates an ACP timing example of JTAG operation through theRun Test/Idle state.

FIG. 39 illustrates an ACP timing example of de-selecting a JTAGoperation in the Run Test/Idle state.

FIG. 40 illustrates an ACP timing example of selecting a JTAG operationin the Pause-DR state.

FIG. 41 illustrates an ACP timing example of JTAG operation through thePause-DR state.

FIG. 42 illustrates an ACP timing example of de-selecting a JTAGoperation in the Pause-DR state.

FIG. 43 illustrates an ACP timing example of selecting a JTAG operationin the Pause-IR state.

FIG. 44 illustrates an ACP timing example of JTAG operation through thePause-IR state.

FIG. 45 illustrates an ACP timing example of de-selecting a JTAGoperation in the Pause-IR state.

FIG. 46 illustrates an ACP timing example of transitioning a selectedJTAG group from the Pause-IR/DR state to the Run Test/Idle state.

FIG. 47 illustrates the steps of performing a boundary scan operation onthree target devices, each device having an Address and Command Port(ACP).

FIG. 48 illustrates an ACP timing example of selecting a Local Trace &Output Operation in the Run Test/Idle state.

FIG. 49 illustrates an ACP timing example of enabling a selected LocalTrace & Output operation in the Shift-DR state.

FIG. 50 illustrates an ACP timing example of de-selecting a Local Trace& Output Operation in the Run Test/Idle state.

FIG. 51 illustrates an ACP timing example of selecting a Group TraceOnly Operation in the Pause-DR state.

FIG. 52 illustrates an ACP timing example of transitioning from thePause-DR state to the Run Test/Idle state to start a Group Trace OnlyOperation.

FIG. 53 illustrates an ACP timing example of de-selecting a Group TraceOnly Operation in the Run Test/Idle state.

FIG. 54 illustrates an ACP timing example of selecting a Local TraceOutput Only operation in the Run Test/Idle state.

FIG. 55 illustrates an ACP timing example of enabling a selected LocalTrace Output Only operation in the Shift-DR state.

FIG. 56 illustrates an ACP timing example of de-selecting a Local TraceOutput Only operation in the Run Test/Idle state.

FIG. 57 illustrates a Trace Domain coupled to the Address, Data, andControl buses of a functional circuit.

FIG. 57A illustrates an example design for the Dual Port Trace Memory ofthe Trace Domain of FIG. 57.

FIG. 58 illustrates an example design for the Trace Controller of theTrace Domain of FIG. 57.

FIG. 59 illustrates the high level block diagram operation of the TraceCommand Controller of FIG. 58.

FIG. 60 illustrates the state diagram of a Trace & Output CMD 1operation of FIG. 59.

FIG. 61 illustrates the state diagram of a Trace & Output CMD 2operation of FIG. 59.

FIG. 62 illustrates the state diagram of a Trace & Output CMD 3operation of FIG. 59.

FIG. 63 illustrates the state diagram of a Trace Only CMD 1 operation ofFIG. 59.

FIG. 64 illustrates the state diagram of a Trace Only CMD 2 operation ofFIG. 59.

FIG. 65 illustrates the state diagram of a Trace Only CMD 3 operation ofFIG. 59.

FIG. 66 illustrates the state diagram of a Trace Output Only operationof FIG. 59.

FIG. 67 illustrates the high level block diagram operation of the EventCommand Controller of FIG. 58.

FIG. 68 illustrates the state diagrams of the Event CMD 1, Event CMD 2,and Event CMD 3 operations of FIG. 67.

FIG. 69 illustrates the state diagrams of the Event CMD 4 and Event CMD5 operations of FIG. 67.

FIG. 70 illustrates the state diagrams of the Event CMD 6 and Event CMD7 operations of FIG. 67.

FIG. 71 illustrates the state diagrams of the Event CMD 8 and Event CMD9 operations of FIG. 67.

FIG. 72 illustrates an example design for the Trace Output Circuit ofFIG. 57.

FIG. 73 illustrates the Address and Command Port (ACP) of a targetdevice coupled to a JTAG controller that has been adapted for receivingtrace data frame outputs from the Trace Domain of the target device.

FIG. 74 illustrates an example design of the Trace Receiver of FIG. 73.

FIG. 75 illustrates an example design of the Memory within the TraceReceiver of FIG. 74.

FIG. 76 illustrates an Address and Command Port (ACP) that uses a threesignal interface as opposed to the two signal interface of FIG. 30

FIG. 77 illustrates the three signal interface Address and Command Port(ACP) of FIG. 76 coupled to a JTAG controller that has been adapted forcommunication with the three signal interface.

FIG. 78 illustrates an Addressable JTAG Port (AJP) of the presentdisclosure. The AJP is used in place of the ACP of FIG. 30 when thetarget device does not include Trace Domains.

FIG. 79 illustrates the Tap State Machine (TSM) used in the AJP of FIG.78.

FIG. 80 illustrates the Master Controller used in the AJP of FIG. 78.

FIG. 81 illustrates the high level block operation of the MasterController of FIG. 80.

FIG. 82 illustrates the state diagram of the Master Reset &Synchronization block of FIG. 81.

FIG. 83 illustrates the state diagram of the Input Address block of FIG.81.

FIG. 84 illustrates an AJP timing example of selecting a JTAG operationin the Run Test/Idle state.

FIG. 85 illustrates an AJP timing example of JTAG operation through theRun Test/Idle state.

FIG. 86 illustrates an AJP timing example of de-selecting a JTAGoperation in the Run Test/Idle state.

FIG. 87 illustrates an AJP timing example of selecting a JTAG operationin the Pause-DR state.

FIG. 88 illustrates an AJP timing example of JTAG operation through thePause-DR state.

FIG. 89 illustrates an AJP timing example of de-selecting a JTAGoperation in the Pause-DR state.

FIG. 90 illustrates an AJP timing example of selecting a JTAG operationin the Pause-IR state.

FIG. 91 illustrates an AJP timing example of JTAG operation through thePause-IR state.

FIG. 92 illustrates an AJP timing example of de-selecting a JTAGoperation in the Pause-IR state.

FIG. 93 illustrates an AJP timing example of transitioning a selectedJTAG group from the Pause-IR or Pause-DR state to the Run Test/Idlestate.

FIG. 94 illustrates the steps of performing a boundary scan operation onthree target devices, each device having an Addressable JTAG Port (AJP).

FIG. 95 illustrates the Addressable JTAG Port (AJP) of a target devicecoupled to a JTAG controller via DIO and CLK signals.

FIG. 96 illustrates an Addressable JTAG Port (AJP) of the presentdisclosure using a three signal interface.

FIG. 97 illustrates the three signal interface Addressable JTAG Port(AJP) of FIG. 96 coupled to a JTAG controller that has been adapted forcommunication with the three signal interface.

DETAILED DESCRIPTION

FIG. 3 illustrates the approach of the present disclosure to reduce thenumber of JTAG pins on an IC 300 and the number of JTAG bus signalconnections between the IC 300 and JTAG controller 100. IC 300 andothers illustrated in this disclosure could represent any type ofintegrated circuit including but not limited to, a microcontroller IC, amicroprocessor IC, a digital signal processor IC, a mixed signal IC, anFPGA/CPLD IC, an ASIC, a system on chip IC, a peripheral IC, a ROMmemory IC, or a RAM memory IC. In FIG. 3, the JTAG controller 100 isinterfaced to a Parallel to Serial Controller (PSC) circuit 302 via TDO,TMS, CKIN, TDI, and TRST signals. The PSC 302 may be a separate circuitfrom the JTAG controller 100 or the PSC 302 and JTAG controller 100 maybe integrated to form a new JTAG controller 304. The PSC 302 isinterfaced to a Serial to Parallel Controller (SPC) circuit 306 in IC300 via a bus comprising a data I/O (DIO) signal 308 and a clock (CLK)signal 310. The SPC 306 is interfaced to Tap Domains 104 in the IC 300via TDI, TMS, TCK, TDO, and TRST signals. As will be described later inregard to FIGS. 16-20, the CLK signal 310 may be driven by a clocksource associated with the JTAG controller 100, a clock sourceassociated with the IC 300, or a clock source not associated with theJTAG controller 100 or IC 300.

FIG. 4A illustrates that the Tap Domain block 104 of IC 300 may consistof a single 1149.1 Tap architecture.

FIG. 4B illustrates that the Tap Domain block 104 of IC 300 may consistof a series of daisy-chained Tap architectures 1-N.

FIG. 4C illustrates that the Tap Domain block 104 of IC 300 may consistof a group of Tap architectures 1-N that may be selected individually orlinked serially together in various daisy-chain arrangements usinglinking circuitry 400. An example of such linking circuitry 400 has beendescribed in referenced U.S. Pat. No. 6,073,254.

FIG. 5A illustrates the PSC circuit 302 in more detail. The PSC consistsof a controller 500, a parallel input serial output (PISO) register 502,and an input/output (I/O) circuit 504. PISO 502 inputs parallel TMS andTDO signals from the JTAG controller 100, the TRST signal from the JTAGcontroller 100, a load (LD) signal from controller 500, and outputs aserial output (OUT) signal to I/O circuit 504.

A simplified view of PISO 502 shows it containing two serially connectedFFs 503 and 505. While the TRST signal from the JTAG controller is low,FFS 503 and 505 are asynchronously set to logic ones and do not respondto the CLK or LD inputs. This can be achieved, for example, byconnecting the TRST signal to the Set input of FFs 503 and 505. The OUTsignal is therefore high while TRST is low. When TRST goes high FFS 503and 505 are enabled to respond to the CLK and LD inputs. In response tothe LD input, FFs 503 and 505 asynchronously load TMS and TDO outputfrom the JTAG controller, respectively. Once loaded, the FFs are shiftedby CLK 310 to output TMS then TDO signals to I/O circuit 504 via the OUTsignal.

Controller 500 inputs the CLK signal 310, the TRST signal from the JTAGcontroller 100. Controller 500 outputs the asynchronous LD signal to thePISO and a clock signal to the CKIN input of JTAG controller 100. WhileTRST is low, the controller is reset and does not respond to the CLKinput. While reset the LD and CKIN outputs from the controller are low.When TRST goes high, the controller is enabled to respond to the CLKinput and output LD and CKIN output signals.

I/O circuit 504 inputs the OUT signals from the PISO and outputs them onDIO 308. The I/O circuit 504 also inputs signals from DIO 308 andoutputs them to the TDI input of JTAG controller 100. I/O circuit 504 isdesigned to allow the output of OUT signals to DIO 308 and the input ofTDI signals from DIO 308 to occur simultaneously. The simultaneous inputand output operation of I/O circuit 504 will be described in detaillater in regard to FIGS. 11A, 11B, 12, 13A, and 13B.

The operation of PSC 302 (while TRST is high) is illustrated in thetiming diagram of FIG. 5B. In response to the CLK input 310, thecontroller 500 operates to periodically output the LD signal to PISO 502and the CKIN signal to JTAG controller 100. Also the CLK input 310 timesthe PISO 502 to shift data from its OUT output to the I/O circuit 504.The I/O circuit passes the OUT signal to the DIO 308 signal. The CKINsignal times the operation of the JTAG controller 100. The LD signalcauses the PISO to asynchronously load the TMS and TDO signal patternfrom JTAG controller 100. Once loaded, the TMS and TDO pattern isshifted out of the PISO to the I/O circuit in response to the CLKsignal.

The following describes the PSC's repeating load and shift out sequence.A TMS and TDO pattern 510 is asynchronously loaded into the PISO inresponse to LD signal 512. CLK signal 514 shifts out the TMS signalportion of pattern 510 on the OUT output of the PISO, then CLK signal516 shifts out the TDO signal portion of pattern 510 on the OUT outputof the PISO. CKIN signal 518 advances the JTAG controller to output thenext TMS and TDO pattern 520. LD signal 522 asynchronously loads thenext TMS and TDO pattern 520 into the PISO. CLK signal 524 shifts outthe TMS signal portion of pattern 520 on the OUT output of the PISO,then CLK signal 526 shifts out the TDO signal portion of pattern 520 onthe OUT output of the PISO. CKIN signal 528 advances the JTAG controllerto output the next TMS and TDO pattern 530 which is asynchronouslyloaded into the PISO by LD signal 532 and shifted out by CLK signals 534and 536. The JTAG controller is advanced to output the next TMS and TDOpattern 540 during CKIN 538. The above described pattern load, patternshift, and JTAG controller advancement process repeats as long as theCLK input 310 is active.

When the JTAG controller 100 receives a CKIN input it will output a newTMS and TDO signal pattern to PISO 502 and input the TDI signal from I/Ocircuit 504. The TMS signal output will control the Tap state machine ofthe target IC's Tap Domain 104 according to FIG. 10, the TDO signal willprovide the TDI input signal to the target IC's Tap Domain (if in theShift-DR/IR state), and the TDI input signal will input data to the JTAGcontroller from the target IC's Tap Domain (if in the Shift-DR/IRstate).

FIG. 6A illustrates an example implementation of controller 500.Controller 500 consists of FF 600, FF 602, AND gates 604-608, and delayinverter 610. While the TRST input from the JTAG controller 100 is low,FFs 600 and 602 are reset and the LD and CKIN outputs are low. When TRSTgoes high, FFs 600 and 602 are enabled to respond to the CLK input 310.FF 600 toggles its load enable (LDENA) output during each rising edge ofCLK input 310. FF 602 stores the LDENA output of FF 600 at its clockenable (CKENA) output on each falling edge of CLK input 310. AND gate604 outputs a high when LDENA is high and CLK is low. AND Gate 606 anddelay inverter 620 operate together to produce a high going pulse on theLD output whenever the output of AND gate 604 goes high.

The duration of the high going pulse on the LD signal is determined bythe input to output signal delay through delay inverter 610. Theduration of the LD pulse should be long enough to asynchronously loadthe PISO with the TMS and TDO pattern but not long enough to interferewith the shifting operation of the PISO. For example, the high going LDpulse should return low for a sufficient amount of time prior to thenext rising edge of the shifting CLK input so as to not interfere withthe shift operation. The CKENA output of FF 602 enables AND gate 608 topass the CLK signal 310 to the CKIN output. CKENA changes state on thefalling edge of CLK 310 to allow a AND gate 608 to be enabled prior tothe rising edge of CLK 310 to allow for good clock gating operation atthe CKIN output.

The operation of controller 500 is illustrated in the timing diagram ofFIG. 6B. In response to the CLK input 310, the controller 500 operatesto periodically output the LD and CKIN signals. As mentioned, the CKINsignal times the operation of the JTAG controller 100 and the LD signalcauses the PISO to asynchronously load the TMS and TDO pattern from theJTAG controller 100. On each rising edge of CLK 310 the LDENA output ofFF 600 toggles its state. On each falling edge of CLK 310 the CKENAoutput of FF 602 is set to the state of the LDENA input to FF 602. A LDpulse output occurs each time LDENA is high and the CLK goes low. A CKINoutput occurs each time CKENA is high and the CLK is high.

FIG. 7A illustrates the SPC circuit 306 in more detail. The PSC consistsof a controller 700, a serial input parallel output (SIPO) register 702,update register 704, Tap state machine (TSM) 706, master reset andsynchronizer (MRS) circuit 708, input/output (I/O) circuit 710, andpower on reset circuit (POR) 712.

POR circuit 712 produces a temporary low active power on reset pulsewhenever the target IC is first power up. This power on reset pulse isused to initialize the MRS circuit. When initialized, the MRS circuit708 outputs a low on the master reset (MRST) signal to initialize othercircuitry within the SPC 306 and to set TRST input of the connected TapDomains 104 low. When TRST is low, the Tap Domains 104 are forced to theTest Logic Reset state. The Test Logic Reset state is a state of the1149.1 Tap state machine and is shown in the Tap state machine diagramof FIG. 10. The POR circuit 712 may exist in the SPC 306 as shown or itmay exist external to the SPC, i.e. as a separate circuit within thetarget IC. The function of the POR circuit to initialize the MRS circuit708 may be achieved by other means. For example a reset pin of the ICmay be substituted for the POR circuit 712 and used to initialize theMRS circuit 708.

Controller 700 inputs the CLK signal 310, a controller enable (CENA)signal from MRS 708, a reset (RST) signal from TSM 706. The controlleroutputs an update clock (UCK) to update register 704 and a TCK signal toTap Domains 104 and TSM 706. A detail description of controller 700 willbe given in FIGS. 8A and 8B.

I/O circuit 710 inputs an output enable (OE) signal from TSM 706. The OEsignal is used to enabled or disable the output drive of I/O circuit710. I/O circuit 710 inputs signals from DIO 308 and outputs them toSIPO 702 via the IN signal. If the OE is set to enable the output driveof I/O circuit 710, TDO signals input from Tap Domains 104 are output onDIO. If the OE is set to disable the output drive of I/O circuit 710,TDO signals are not output on DIO and the I/O circuit operates to onlyinput DIO signals to SIPO 702 via the IN signal. I/O circuit 504 isdesigned to allow the output of TDO signals to DIO 308, if enabled byOE, and the input of IN signals from DIO 308 to occur simultaneously.The simultaneous input and output operation of I/O circuit 710 will bedescribed in detail later in regard to FIGS. 11A, 11B, 12, 13A, and 13B.

SIPO 702 inputs the serialized TMS and TDO signal patterns from the INoutput of I/O circuit 710 in response to the CLK input 310 and outputsthem to update register 704. The update register 704 inputs the TDO andTMS outputs from the SIPO and outputs them as TDI and TMS signals to TapDomains 104. The update register also inputs the MRST signal from theMRS circuit 708. While the MRST signal is active low the TDO and TMSoutputs of the update register 704 are set high. While the MRST signalis inactive high the update register can respond to the update clock(UCK) signal from controller 700 to load TDO and TMS signals from theSIPO 702.

A more detail view of SIPO 702 and update register 704 shows the SIPOcontaining two serially connected FFs 703 and 705. In response to theCLK signal 310, FFs 703 and 705 shift in the serialized TMS and TDOsignals from the IN output of I/O circuit 710. Once the TMS and TDOsignals are shifted in they are transferred in parallel to FFs 707 and709 in the update register 704 in response to the UCK signal where theyare input to the TDI and TMS inputs of Tap Domains 104. The updateregister serves to provide the current TDI and TMS input pattern to theTap Domains 104 while the SIPO operates to serially input the next TDOand TMS pattern to be input to the Tap Domains 104. As mentioned, theoutputs of FFs 707 and 709 are asynchronously forced high in response toa low on the MRS signal, which results in highs being input to the TDIand TMS inputs of Tap Domain 104. This can be achieved, for example, byconnecting the MRS signal to the Set input of FFs 707 and 709.

TSM circuit 706 inputs the TMS output from the update register, the TCKoutput of controller 700, and the MRST output from MRS circuit 708. TSMcircuit 706 outputs a reset (RST) signal to controller 700 and MRScircuit 708, and the OE signal to I/O circuit 710. The TSM is simply theTap state machine defined in IEEE standard 1149.1. The MRST input fromMRS circuit 708 is connected to the standard “TRST” input of 1149.1 TSM,the TCK input from controller 700 is connected to the standard “TCK”input of the 1149.1 TSM, the TMS input from controller 700 is connectedto the standard “TMS” input of the 1149.1 TSM, the RST output from TSMis connected to the standard “Reset*” output of the 1149.1 TSM, and theOE output of the TSM is connected to the standard “Enable” output of the1149.1 TSM.

The TSM circuit is used by the present disclosure to allow the SPC totrack the Tap states of the connected Tap Domains, especially the statesthat control the OE and RST outputs. The operation of the 1149.1 Tapstate machine is defined in the 16 states shown in FIG. 10. While it ispossible to actually use signals from the Tap state machine(s) of theconnected Tap Domains 104 for tracking, instead of implementing adedicated TSM circuit 706 in the SPC 306, the required signals (OE andRST) may not always be available from the Tap Domains 104. For example,connected Tap Domains 104 of hard cores (i.e. cores that are fixed andcannot be modified) may not provide OE and RST output signal terminalsfor connection to the SPC's OE and RST terminals. Further, Tap Domains104 having linking arrangements as shown in FIG. 4C may present OE andRST signal switching complexities between the SPC 306 and linked Tapswithin Tap Domains 104. Therefore, the SPC 306 preferably includes a TSMcircuit 706 to insure simplicity in tracking the states of connected TapDomains 104.

MRS circuit 708 inputs the IN output of I/O circuit 710, the CLK signal310, the RST signal from TSM 706, and the power on reset output of PORcircuit 712. MRS circuit 708 outputs the MRST signal to Tap Domains 104,TSM 706, and update register 704 and the CENA signal to controller 700.The purposes of the MRS circuit 708 are; (1) to maintain the SPC andconnected Tap Domains 104 in a reset state when the target IC isoperating normally in a system with no JTAG controller 100 and PSC 302connected to the SPC's DIO 308 and CLK 310 signals, and (2) to allowsynchronizing the operation of the SPC 306 to the operation of a JTAGcontroller 100 and PSC 302 when the JTAG controller and PSC areconnected to the SPC's DIO and CLK signals. Synchronizing the operationof the SPC to the operation of the JTAG controller and PSC is importantsince it allows the serialized TMS and TDO patterns output from PSC tobe correctly input as serialized TMS and TDO patterns to the SPC. Adetail description of MRS circuit 708 will be given in regard to FIGS.9A-9C.

The operation of SPC 306 is illustrated in the timing diagram of FIG.7B. In response to the CLK input 310, the controller 700 operates toperiodically output the UCK signal to the update register 704 and theTCK signal to Tap Domains 104 and TSM 706. Also the CLK input 310 timesthe SIPO 702 to shift in data from the IN output of the I/O circuit 710.The I/O circuit passes DIO input signals to the IN output. The TCKsignal times the operation of the Tap Domains 104. The UCK signal causesthe update register 704 to load the parallel TDO and TMS signal patternoutput of the SIPO 702. Once loaded, the TDO and TMS signal pattern isapplied to the TDI and TMS inputs of Tap Domains 104. The Tap Domains104 respond to the TDI and TMS signal pattern in response to the TCK.

The following describes the SPC's repeating shift in and updatesequence. A serial TMS and TDO bit stream 718 is shifted into SIPO 702in response to CLK signals 720 and 722. The shifted in TMS and TDOsignals form a parallel TDO and TMS output pattern 724 from SIPO 702that is clocked into to the update register 704 in response to UCKsignal 726. The TDO and TMS pattern 724 in the update register 704 isapplied to the TDI and TMS inputs of Tap Domains 104. TCK signal 728clocks the Tap Domains 104 to respond to the TDI and TMS pattern 724from update register 704. The next serial TMS and TDO bit stream 730 isshifted into SIPO 702 in response to CLK signals 732 and 734. Theshifted in TMS and TDO signals form a parallel TDO and TMS outputpattern 736 from SIPO 702 that is clocked into to the update register704 in response to UCK signal 738. The TDO and TMS pattern 738 in theupdate register 704 is applied to the TDI and TMS inputs of Tap Domains104. TCK signal 740 clocks the Tap Domains 104 to respond to the TDI andTMS pattern 730 from update register 704. The above described serialpattern shift in, parallel pattern update, and Tap Domain clockoperation repeats as long as the CLK input 310 is active.

When the Tap Domain 104 receives a TCK input, the Tap state machine ofthe Tap Domain responds to the TMS input to perform state transitions asseen in FIG. 10. Also the Tap Domain 104 will input data from its TDIinput and output data on its TDO output in response to a TCK input, ifthe Tap state machine is in the Shift-DR/IR state of FIG. 10.

FIG. 8A illustrates an example implementation of controller 700.Controller 700 consists of FF 800, FF 802, AND gates 804 and 806, and ORgate 808. FF 800 toggles its update enable (UPENA) output during eachrising edge of CLK 310. FF 802 stores the UPENA output of FF 800 at itsclock enable (CKENA) output on each falling edge of CLK 310. AND gate804 outputs a high on its UCK output when UPENA is high, CLK is low, andthe controller reset (CRST) output of OR gate 808 is high. AND gate 806is gated on to pass its CLK 310 input to its TCK output whenever CKENAand CRST are high, otherwise the TCK output is forced low. OR gate 808outputs a high on CRST whenever the CENA input from CS circuit 708 ishigh and/or the RST input from TSM 706 is high, otherwise CRST outputs alow. CKENA changes state on the falling edge of CLK 310 to allow ANDgate 806 to be enabled prior to the rising edge of CLK 310 to allow forgood clock gating operation at the TCK output.

The operation of controller 700 is illustrated in the timing diagram ofFIG. 8B. While the CRST output of OR gate 808 is high, the controller700 operates to periodically output the UCK and TCK signals in responseto the CLK input 310. As mentioned, the TCK signal times the operationof the Tap Domains 104 and the UCK signal causes the update register toload the parallel TDO and TMS pattern from SIPO 702. On each rising edgeof CLK 310 the update enable (UPENA) output of FF 800 toggles its state.On each falling edge of CLK 310 the CKENA output of FF 802 is set to thestate of the UPENA input to FF 802. An UCK output occurs each time LDENAis high and the CLK goes low. A CKIN output occurs each time CKENA ishigh and the CLK is high. If CENA and RST are both low, the CRST outputof OR gate 808 will be low to reset controller 700. While CRST is low,the UPENA output of FF 800 is set high, the CKENA output of FF 802 isset low, the UCK output of AND gate 804 is set low, and the TCK outputof AND gate 806 is set low.

FIG. 9A illustrates an example implementation of the MRS circuit 708.MRS circuit 708 consists of a state machine 900 and a FF 902. The statemachine 900 operates on the rising edge of CLK 310 and FF 902 operateson the falling edge of CLK 310. The state machine 900 inputs the INsignal from I/O circuit 710, the RST signal from TSM 706, a clock signalfrom CLK 310, and a power on reset signal from POR 712. The statemachine 900 outputs the previously mentioned MRST signal and acontroller enable (CE) signal. The CE signal is connected to the D inputof FF 902. The Q output of FF 902 drives the previously mentioned CENAsignal. The reset input of the FF 902 is connected to the power on resetoutput of POR 712.

As previously mentioned the purposes of the MRS circuit 708 are tomaintain the SPC and Tap Domains in a reset condition when the SPC's DIO308 signal is not externally driven and to synchronize the operation ofthe SPC with an external circuit driving the SPC's DIO 308 signal.

The operation of state machine 900 is shown in the state diagram of FIG.9B. In response to a low active power on reset input from POR 712 or inresponse to the RST output of TSM 706 going low, the state machine 900will enter “Set MRST Low & Poll IN” state 904. In state 904 the statemachine will output a low on the MRST output signal. The state machinewill remain in state 904 while the IN input from I/O circuit 710 ishigh. The state machine will transition to “Poll IN” state 906 if the INinput goes low. The MRST output remains low in state 906. The statemachine will return to state 904 from state 906 if the IN input goeshigh, otherwise the state machine will transition from state 906 to“Poll IN” state 908. The MRST output remains low in state 908. The statemachine will return to state 904 from state 908 if the IN input goeslow, otherwise the state machine will transition from state 908 to “PollIN” state 910. The MRST output remains low in state 910. The statemachine will return to state 904 from state 910 if the IN input goeslow, otherwise the state machine will transition from state 910 to “SetMRST & CE High” state 912.

In state 912, the state machine sets the MRST and CE signals high. Onthe falling edge of CLK 310, FF 902 clocks in the high CE output fromstate machine 900 which sets the CENA output of FF 902 high. The statemachine will remain in state 912 while the RST input is low. When theRST input goes high, the state machine will transition to the “Set CELow” state 914. In state 914, the state machine sets the CE signal low.On the falling edge of CLK 310, FF 902 clocks in the low CE output fromstate machine 900 which sets the CENA output of FF 902 low. The statemachine will remain in state 914 while the RST input is high and willtransition to state 904 when the RST input goes low.

The state machine is designed to enter state 904 when it receives apower on reset input from POR 712 or a low input on the RST output ofTSM 706. The state machine will remain in state 904 as long as the INinput from I/O circuit 710 is high. As will be described later in regardto FIG. 11A, I/O circuit is designed to output a high on the IN signalwhen the state machine outputs a low on the MRST signal and if the DIOinput 308 to I/O circuit 710 is not being externally driven. The high onthe IN signal maintains the state machine 900 in state 904 whichmaintains a low on the state machine MRST output. While MRST is low, SPC306 circuitry and Tap Domains 104 are held in an inactive reset statethat cannot interfere with the normal operation of the target IC.

When the JTAG controller 100 and PSC circuit 302 of FIG. 5A are firstconnected to the DIO signal of the target IC's SPC circuit 306 of FIG.7A, the operation of the PSC and SPC circuits need to be synchronizedsuch that the serialized TMS and TDO patterns from the PSC are correctlyinput as serialized TMS and TDO patterns to the SPC. The states withinsection 916 of the state diagram of FIG. 9B provide one example of howthis required synchronization step may be achieved. A timing diagramdepicting this synchronization process is shown in FIG. 9C.

Time reference 918 of FIG. 9C indicates a time period where the PSC 302is not connected to SPC 306, i.e. DIO 308 is not being externallydriven. The circuitry in the SPC 306 and Tap Domains 104 of the targetIC have been initialized as previously described and the state machine900 is in state 904 polling the high output of the IN signal andoutputting a low on the MRST output. Time 918 could be a time where thetarget IC in which the SPC 306 and Tap Domains 104 reside is operatingnormally in a system and the SPC's DIO signal is not being externallydriven to perform test, emulation, debug, and/or trace operations. Inthis timing example it is assumed that CLK signal 310 is being activelydriven by a clock source within the target IC. Thus state machine 900state 904 is polling the high logic level of the IN signal during eachrising edge of the active CLK signal 310. It is worth noting that if theIN signal were to temporarily go low during a CLK cycle input for someunknown reason, the state machine would return to state 904 via state906. Further, the state machine would return to state 904 from states908 and 910 in response to the IN signal having other temporarily lowand high signal sequences for some unknown reason.

Time reference 920 of FIG. 9C indicates a time period where the PSC 302has been externally connected to the SPC 306 via the DIO 308 and CLK 310signals. During the physical connection process there may be undesirabletemporary signaling sequence on DIO 308 due to the electrical connectionbeing formed between the PSC and SPC. These temporary signal sequencescould prevent the successful synchronization between the PSC and SPC.The state transition mapping in section 916 of FIG. 9B is provided tofilter out the following three types of temporary signal sequences onthe DIO so that they do not effect the synchronization process betweenPSC and SPC.

1. As seen in the state diagram, a temporary DIO signal sequence of1-0-1 during the connection process would cause the state machine totransition from state 904 to state 906 and back to state 904. Thus thistemporary DIO connection sequence is prevented from effecting thesynchronization process.

2. As seen in the state diagram, a temporary DIO signal sequence of1-0-0-0-1 during the connection process would cause the state machine totransition from state 904 to state 906 to state 908 and back to state904. Thus this temporary DIO connection sequence is prevented fromeffecting the synchronization process.

3. As seen in the state diagram, a temporary DIO signal sequence of1-0-0-1-0-1 during the connection process would cause the state machineto transition from state 904 to state 906 to state 908 to state 910 andback to state 904. Thus this temporary DIO connection sequence isprevented from effecting the synchronization process.

It should be understood that while the example state machine has beendesigned to filter out the above three types of temporary DIO sequences,it could be designed to filter out a greater number of DIO sequences ifdesired.

Time reference 922 of FIG. 9C indicates the start of a time period wherethe connection between the PSC 302 and SPC 306 has been made and thestate machine is in state 904 with the IN signal driven high by DIOinput from the connect PSC 302. The PSC 302 begins the synchronizationprocess by serially inputting a pattern of two logic 0's 924 on theSPC's IN signal via DIO 308, which causes the state machine 900 totransition from state 904 to state 906 to state 908. As seen in FIG. 5A,the PSC outputs the two logic 0's by loading the PISO 502 with a TMSvalue of 0 and a TDO value of 0 using the LD signal, then shifting thePISO to output the two logic 0's using the CLK signal 310. Next the PSC302 serially inputs a pattern of two logic 1's 926 on the SPC's INsignal via DIO 308, which causes the state machine 900 to transitionfrom state 908 to state 910 to state 912. Again as seen in FIG. 5A, thePSC outputs the two logic 1's by loading the PISO 502 with a TMS valueof 1 and a TDO value of 1 using the LD signal, then shifting the PISO tooutput the two logic 1's using the CLK signal 310. As seen, the statemachine 900 can only transition from state 904 to state 912 in responseto the exact input of a serial pattern of two logic 0's followed by aserial pattern of two logic 1's.

As seen in the timing diagram, the MRST and CE signal outputs of statemachine 900 are set high in state 912 at time 925. MRST going highremoves the reset condition from Tap Domains 104, TSM 706, and updateregister 704. CE going high causes FF 902 to set CENA high at time 927.When CENA goes high, the CRST signal of controller 700 is set high whichenables the controller 700 to start outputting UCK and TCK signals attime 923. The first UCK signal at time 923 loads the two logic 1's ofpattern 926 into update register 704. The enabling of the SPC'scontroller 700 at time 923 occurs such that the UCK and TCK signals ofthe SPC's controller 700 are synchronized with the LD and CKIN signalsof the PSC's controller 500, respectively. By synchronizing the UCKsignal with the LD signal and the TCK signal with the CKIN signal theSPC 306 can correctly receive subsequent serialized two bit patternsfrom PSC 302 via DIO 308. For example, when the PISO 502 is shifting outa two bit pattern the SIPO 702 is shifting in the two bit pattern, andwhen the PISO 502 is loading the next two bit pattern to be shifted theSIPO 702 is updating the current two bit pattern to the update register704. The synchronized operation of the UCK and LD signals and the TCKand CKIN signals will be seen more clearly in regard to the descriptionof FIG. 14A.

While state machine 900 of the present disclosure has been designed touse a sequence of two serialized two bit patterns 924 and 926 forsynchronization, it could be designed to use a longer sequence ofserialized two bit patterns for synchronization if desired. Using alonger sequence of two bit patterns would further reduce the possibilityof synchronization failure between the PSC and SPC due to the previouslymentioned connection process during time 920. Also a longersynchronization pattern sequence would improve the state machine's 900ability to return to state 904, when DIO is not externally driven, inthe event unexpected signaling were to occur on the state machine's INinput. While the example two bit patterns 924 and 926 used two 0's andtwo 1's respectively, the two bits of a pattern may use any desired ornecessary combinations of 0's and 1's as well. The TMS portion of thelast two bit pattern of a pattern sequence will be the first TMS inputthe Tap Domains 104 and TSM circuit 706 respond to. In the FIG. 9Cexample, the TMS portion of pattern 926 was set to logic 1 to cause theTap Domains 104 and TSM circuit 706 to remain in the TLR state followingsynchronization. If the TMS portion of pattern 926 had been set to logic0, the Tap Domains 104 and TSM circuit 706 would have transitioned tothe RTI state following synchronization.

Following the above described PSC and SPC synchronization process, thePSC may begin inputting serialized TDO and TMS patterns to the SPC toscan JTAG instructions or data into the Tap Domains 104. The followingexample describes the PSC inputting serialized TDO and TMS patterns tothe SPC to cause the Tap Domains 104 to perform an instruction scanoperation according to the Tap state diagram of FIG. 10.

The SPC inputs a first serialized TDO (X) and TMS (0) pattern 928 fromthe PSC which is input to SIPO 702 and applied to the TDI and TMS inputTap Domains 104 and the TMS input of TSM 706 via update register 704during UCK 929. The X in the TDO portion of the pattern indicates thatTDO is a don't care signal. This first TDI and TMS pattern input to TapDomains 104 and TSM 706 causes the Tap Domains and TSM to transitionfrom the Test Logic Reset (TLR) state to the Run Test/Idle (RTI) state(FIG. 10) in response to TCK 942. On the falling edge of TCK 942 the TSM706 sets its RST signal high to remove the reset condition at the inputof OR gate 808 of controller 700. In response to RST going high, statemachine 900 transitions to state 914 on the next rising edge of CLK 310.The state machine sets the CE output low in state 914 which causes FF902 to output a low on CENA on the falling edge of CLK 310. Statemachine 900 will remain in state 914 while the RST signal is high.

The SPC inputs a second serialized TDO (X) and TMS (1) pattern 930 fromPSC which is input to SIPO 702 and applied to the TDI and TMS input TapDomains 104 and the TMS input of TSM 706 via update register 704 duringUCK 931. This second TDI and TMS pattern causes the Tap Domains 104 andTSM to transition from the RTI state to the Select-DR (SLD) state inresponse to TCK 944.

The SPC inputs a third serialized TDO (X) and TMS (1) pattern 932 fromPSC which is input to SIPO 702 and applied to the TDI and TMS input TapDomains 104 and the TMS input of TSM 706 via update register 704 duringUCK 933. This third TDI and TMS pattern causes the Tap Domains 104 andTSM to transition from the SLD state to the Select-IR (SLI) state inresponse to TCK 946.

The SPC inputs a fourth serialized TDO (X) and TMS (0) pattern 934 fromPSC which is input to SIPO 702 and applied to the TDI and TMS input TapDomains 104 and the TMS input of TSM 706 via update register 704 duringUCK 935. This fourth TDI and TMS pattern causes the Tap Domains 104 andTSM to transition from the SLI state to the Capture-IR (CPI) state inresponse to TCK 948.

The SPC inputs a fifth serialized TDO (X) and TMS (0) pattern 936 fromPSC which is input to SIPO 702 and applied to the TDI and TMS input TapDomains 104 and the TMS input of TSM 706 via update register 704 duringUCK 937. This fifth TDI and TMS pattern causes the Tap Domains 104 andTSM to transition from the CPI state to the Shift-IR (SHI) state inresponse to TCK 950. When the TSM 706 transitions to the SHI state it'sOE output is set to enable the output drive of I/O circuit 710 such thatthe first TDO output from the Tap Domains 104 can be output on DIO 308to be input to the JTAG controller's TDI input via I/O circuit 504 ofPSC controller 500. TSM 706 sets its OE to enable the output drive ofI/O circuit 710 whenever the TSM (and Tap Domains) is in the Shift-IR orShift-DR states of FIG. 10.

The SPC inputs a sixth serialized TDO (1) and TMS (0) pattern 938 fromPSC which is input to SIPO 702 and applied to the TDI and TMS input TapDomains 104 and the TMS input of TSM 706 via update register 704 duringUCK 939. This sixth TDI and TMS pattern causes the Tap Domains 104 andTSM to remain in the SHI state in response to TCK 952. In pattern 938,TDO is shown set to a 1 to indicate that the first TDI input to beshifted into the Tap Domains 104 is a logic 1. On the rising edge of TCK952 the first TDI input (1) of the sixth pattern 938 is shifted into theTap Domains 104. Also the first TDO output from the TAP Domains 104 isinput to the TDI input of the JTAG controller 100 on the rising edge ofa CKIN input which is synchronized to TCK 952.

For as long as serialized patterns are input to cause the Tap Domains104 (and TSM 706) to remain in the SHI state (i.e. TMS portion of thepatterns=0), the TDI input portion of each pattern will be input to theTap Domains 104 while TDO outputs from the Tap Domains will be input tothe JTAG controller 100. When the shifting in and out of TDI and TDO iscomplete, the PSC will input serialized patterns with the TMS portion ofthe patterns set to move the Tap Domains 104 and TSM 706 from theShift-IR state (SHI) to the Exit1-IR state, then to any other stateaccording to the Tap state diagram of FIG. 10.

While the above process described performing an instruction scanoperation between the JTAG controller and Tap Domains of the target IC,data scan operations may be similarly performed. Instruction and datascan operations using serialized TDI and TMS inputs from the JTAGcontroller and TDO outputs from the Tap Domains can be used to performtest, emulation, debug, trace, and/or other operations via the twosignal DIO 308 and CLK 310 interface between the PSC and SPC.

When an operation is complete, the JTAG controller can output a stringof serialized TDO and TMS patterns with the TMS portion of each patternset to a logic one to cause the Tap Domains 104 and the TSM circuit 706to transition into the Test Logic Reset state of FIG. 10. As seen inFIG. 10, the Tap state machine is designed to transition from any of itsstates to the Test Logic Reset state whenever it receives at least 5logic high inputs on TMS. Therefore 5 serialized TDO and TMS patternseach with TMS high will cause the Tap Domains 104 and TSM 706 to enterthe Test Logic Reset state.

When the TSM 706 enters the Test Logic Reset state it will set the RSToutput low which will reset the controller 700 and cause the MRS 708state machine 900 to enter state 904, which will result in the signallevels shown during time reference 918 of the timing diagram of FIG. 9C.After the SPC circuitry has been reset by the RST signal the DIO and CLKconnection between the PSC and SPC can be removed. During the PSC andSPC disconnect step, temporary signal glitching/bounce may occur on theDIO signal. The previously described state machine 900 states in section916 of FIG. 9B come into play once again to filter the IN input to thestate machine such that the state machine remains in or returns to state904 following any undesired temporary DIO signaling that may occurduring the disconnect step. Following the disconnect step, the statemachine will be in state 904 with the MRST output low, which maintains areset condition on controller 700, TSM 706, and Tap Domains 104.

FIG. 11A illustrates an example of a JTAG controller 100 and PSC 302arrangement 1100 interfaced the SPC 306 and Tap Domains 104 of target IC300 via DIO 308 signal connections between I/O circuit 504 ofarrangement 1100 and I/O circuit 710 of the target IC. Forsimplification, the CLK 310 signal that accompanies the DIO signal 308is not shown in this example. Also for simplification and ease ofdescription, the I/O circuits 504 and 710 are shown to exist outside thePSC 302 and SPC 306 respectively, instead of inside as previously shownin FIGS. 5A and 7A. I/O circuit 504 is coupled to the PSC 302 via theOUT signal and to the JTAG controller 100 via the TDI signal. I/Ocircuit 710 is coupled to the Tap Domains 104 via the TDO signal and tothe SPC via the IN and OE signals.

I/O circuit 504 consists of an input circuit 1102, an output buffer1104, and a resistor 1106. The OUT signal is coupled to the input ofbuffer 1104 and to a first input of the input circuit 1102. The outputof the buffer 1104 is coupled to the DIO signal via resistor 1106. TheDIO signal is coupled to a second input of the input circuit 1102. Theoutput of the input circuit 1102 is coupled to the TDI input of the JTAGcontroller 100.

I/O circuit 710 consists of an input circuit 1108, an output buffer1110, a resistor 1112, and a pull up (PU) circuit 1114. The TDO signalis coupled to the input of buffer 1110 and to a first input of the inputcircuit 1108. The output of the buffer 1110 is coupled to the DIO signalvia resistor 1112. The DIO signal is coupled to a second input of theinput circuit 1108 and to the PU circuit 1112. The output of the inputcircuit 1108 is coupled to the IN input of SPC 306.

The PU circuit 1114 is used to set the DIO signal input to input circuit1108 high when the DIO signal is not being driven by either buffer 1104or 1110. For example, when the JTAG controller and PSC arrangement 1100is not connected to the DIO of the target IC and while the output driveof buffer 1110 of the target IC is disabled by the OE signal, the PUcircuit 1114 will set the DIO signal high so that logic ones are inputto the SPC 306 from the IN signal output of input circuit 1108 high. Thehigh on the IN signal will cause the state machine 900 of MRS circuit708 to remain in state 904 of FIG. 9B, as previously described.

The output buffer 1104 of I/O circuit 504 and the output buffer 1110 ofI/O circuit 710 will preferably be designed to have approximately thesame current sink/source drive strength. Also the resistors 1106 and1112 of I/O circuits 504 and 710 will have approximately the sameresistance.

FIG. 11B illustrates timing waveforms for the four cases A-D in whichsimultaneous data communication occurs between the I/O circuits 504 and710 via DIO 308. Each case A-D is indicated in the timing diagram byvertical dotted line boxes. FIG. 12 illustrates the current flow on theDIO signal wire during each of the four cases A-D. In these examples,the OE input to buffer 1110 is set to enable the buffer 1110 to drivethe DIO signal.

Case A: If OUT=Low & TDO=Low, Then DIO=Low, TDI=Low, & IN=Low

Case B: If OUT=Low & TDO=High, Then DIO=Mid, TDI=High, & IN=Low

Case C: If OUT=High & TDO=Low, Then DIO=Mid, TDI=Low, & IN=High

Case D: If OUT=High & TDO=High, Then DIO=High, TDI=High, & IN=High

Case A shows PSC 302 driving OUT low and Tap Domains 104 driving TDOlow. As seen in Case A of FIG. 12, with lows being output from bothbuffers 1104 and 1110 only a small amount of current flows on the DIOsignal wire. This small current flow does not develop a significantvoltage drop across resistors 1106 and 1112. Thus the DIO signal inputto the input circuits 1102 and 1108 will be easily detectable as being alow signal input. In response to this OUT and TDO output condition theDIO signal is driven low. With OUT and DIO low, the input circuit 1102inputs a low on the TDI input to JTAG controller 100. With TDO and DIOlow, the input circuit 1108 inputs a low on the IN input to SPC 306.

Case B shows PSC 302 driving OUT low and Tap Domains 104 driving TDOhigh. As seen in Case B of FIG. 12, with a low being output from buffer1104 and a high being output from buffer 1110 a larger current flowsbetween the buffers on the DIO signal wire. The resistors 1106 and 1112serve to limit this larger current flow and the voltage drops developedacross them establish mid level voltage on the DIO wire that is easilydetectable by the input circuits 1102 and 1108 from being either high orlow. In response to this OUT and TDO output condition the DIO signal isdriven to a mid voltage level. With OUT low and DIO at a mid voltage,the input circuit 1102 inputs a high on the TDI input to JTAG controller100. With TDO high and DIO at a mid voltage, the input circuit 1108inputs a low on the IN input to SPC 306.

Case C shows PSC 302 driving OUT high and Tap Domains 104 driving TDOlow. As seen in Case C of FIG. 12, with a high being output from buffer1104 and a low being output from buffer 1110 a larger current flowsbetween the buffers on the DIO signal wire. The resistors 1106 and 1112serve to limit this larger current flow and the voltage drops developedacross them establish mid level voltage on the DIO wire that is easilydetectable by the input circuits 1102 and 1108 from being either high orlow. In response to this OUT and TDO output condition the DIO signal isdriven to a mid voltage level. With OUT high and DIO at a mid voltage,the input circuit 1102 inputs a low on the TDI input to JTAG controller100. With TDO low and DIO at a mid voltage, the input circuit 1108inputs a high on the IN input to SPC 306.

Case D shows PSC 302 driving OUT high and Tap Domains 104 driving TDOhigh. As seen in Case D of FIG. 12, with highs being output from bothbuffers 1104 and 1110 only a small amount of current flows on the DIOsignal wire. This small current flow does not develop a significantvoltage drop across resistors 1106 and 1112. Thus the DIO signal inputto the input circuits 1102 and 1108 will be easily detectable as being ahigh signal input. In response to this OUT and TDO output condition theDIO signal is driven high. With OUT and DIO high, the input circuit 1102inputs a high on the TDI input to JTAG controller 100. With TDO and DIOhigh, the input circuit 1108 inputs a high on the IN input to SPC 306.

FIG. 13A illustrates one example of how to design an input circuit 1300that can be used as either an input circuit 1102 or 1108. The inputcircuit 1300 includes a voltage comparator circuit 1302, a multiplexers1304, an inverter 1306, and a buffer 1308. The voltage comparatorcircuit 1302 inputs voltages from DIO and outputs digital controlsignals S0 and S1 to multiplexer 1304. As seen, a first voltage (V) toground (G) leg 1310 of voltage comparator circuit 1302 comprises aseries P-channel transistor and a current source and a second voltage toground leg 1312 comprises a series N-channel transistor and a currentsource. As seen, S1 is connected at a point between the P-channeltransistor and current source of the first leg 1310 and S0 is connectedat a point between the N-channel transistor and current source of thesecond leg 1312. The gates of the transistors are connected to DIO toallow voltages on DIO to turn the transistors on and off.

The operation of the voltage comparator circuit 1302 and multiplexer1304 is shown in the truth table of FIG. 13B and described herein. Ifthe voltage on DIO is low, the S0 and S1 outputs are set high, whichcauses the multiplexer 1304 to select its low input 1314 and output thelow input on the TDI/IN (TDI for circuit 1102 and IN for circuit 1108)signal via buffer 1308. If the voltage on DIO is at a mid level, the S0is set low and the S1 is set high, which causes the multiplexer 1304 toselect its inverted OUT/TDO (OUT for circuit 1102 and TDO for circuit1108) input signal 1316 and output the inverted OUT/TDO signal to theTDI/IN signal via and buffer 1308. If the voltage on DIO is high, the S0and S1 outputs are set low, which causes the multiplexer 1304 to selectits high input 1318 and output the high input to the TDI/IN signal viaand buffer 1308.

From the above description it is clear that the input circuit 1300 will;(1) input a low on TDI/IN if the DIO signal is low, (2) input a high onTDI/IN if the DIO signal is high, and (3) will input the inverse ofOUT/TDO on TDI/IN if the DIO signal is at a mid level voltage betweenhigh and low.

Referring back to FIG. 11A and in reference to the above description ofinput circuit 1300 it is clear that,

(1) If DIO is high, input circuits 1102 and 1108 will input highs to theJTAG controller 100 and SPC 306 respectively.

(2) If DIO is low, input circuits 1102 and 1108 will input lows to theJTAG controller 100 and SPC 306 respectively.

(3) If DIO is mid level and the OUT signal from PSC 302 is low, inputcircuit 1102 will know that the Tap Domain 104 is outputting a high onTDO to cause the mid level on DIO. Input circuit 1102 will thereforeinput a high to the TDI input of JTAG controller 100.(4) If DIO is mid level and the OUT signal from PSC 302 is high, inputcircuit 1102 will know that the Tap Domain 104 is outputting a low onTDO to cause the mid level on DIO. Input circuit 1102 will thereforeinput a low to the TDI input of JTAG controller 100.(5) If DIO is mid level and the TDO signal from Tap Domain 104 is low,input circuit 1108 will know that the PSC 302 is outputting a high onOUT to cause the mid level on DIO. Input circuit 1108 will thereforeinput a high to the IN input of SPC 306, and;(6) If DIO is mid level and the TDO signal from Tap Domain 104 is high,input circuit 1108 will know that the PSC 302 is outputting a low on OUTto cause the mid level on DIO. Input circuit 1108 will therefore input alow to the IN input of SPC 306.

FIG. 14A shows a complete arrangement where the JTAG controller 100 andPSC 302 are connected to and are communicating with the SPC 306 and TapDomains 104 of target IC 300 via the DIO 308 and CLK 310 signals. Forsimplification only the circuit elements of the PSC 302 and SPC 306 thatare involved with the communication process are shown. The timingdiagram of FIG. 14B details the communication process.

In the timing diagram of FIG. 14B, both the controllers 500 and 700 ofPSC and SPC, respectively, have been synchronized as previouslydescribed and are actively operating their respective LD and CKIN andUCK and TCK signals in response to the CLK signal 310. As seen andpreviously mentioned, the LD signal of the PSC operates synchronous withthe UCK signal of the SPC, and the CKIN signal of the PSC operatessynchronous with the TCK signal of the SPC. For simplification the CKINand TCK signals are shown as one clock signal.

During LD signal 1402 TMS and TDO pattern N 1404 from JTAG controller100 is loaded into PISO 502. The TMS portion of the loaded pattern isshifted from PISO 502 to SIPO 702 during CLK 1406 and the TDO portion ofthe loaded pattern is shifted from PISO 502 to SIPO 702 during CLK 1408.CKIN 1410 advances the JTAG controller to output the next TMS and TDOpattern N+1 1412 and to input the TDO output 1415 from the Tap Domains(if in the Shift-DR or Shift-IR state). TCK 1410 causes the TAP Domains104 to respond to the previously transmitted TDI and TMS input patternN−1 1414 input to the Tap Domains during UCK 1413. Also during TCK 1410,the Tap Domains will output the next TDO output to be input to the JTAGcontroller (if in the Shift-DR or Shift-IR state).

During LD signal 1418 TMS and TDO pattern N+1 1412 from JTAG controller100 is loaded into PISO 502. The TMS portion of the loaded pattern isshifted from PISO 502 to SIPO 702 during CLK 1420 and the TDO portion ofthe loaded pattern is shifted from PISO 502 to SIPO 702 during CLK 1422.CKIN 1424 advances the JTAG controller to output the next TMS and TDOpattern N+2 1426 and to input the TDO output 1428 from the Tap Domains.TCK 1424 causes the TAP Domains 104 to respond to TDI and TMS inputpattern N 1416 input to the Tap Domains during UCK 1413. Also during TCK1424, the Tap Domains will output the next TDO output 1432 to be inputto the JTAG controller.

The above described timing example of the communication between the JTAGcontroller 100 and Tap Domains 104, via PSC and SPC, continues while aDIO and CLK connection exists between the PSC and SPC and while the CLKsignal 310 is active.

FIG. 14C illustrates a timing example of the arrangement of FIG. 14Aperforming a single data register shift operation between the JTAGcontroller and Tap Domains. As seen the JTAG controller outputs asequence of TMS and TDO patterns 1440-1454 that will control the TapDomains to transition from the Run Test/Idle (RTI) state, to theSelect-DR (SLD) state, to the Capture-DR (CPD) state, to the Select-DR(SLD) state, to the Exit1-DR (X1D) state, to the Update-DR (UPD) state,and back to the RTI state of FIG. 10. This Tap state sequence will causea one bit data register shift operation to occur between the JTAGcontroller and Tap Domains. The sequence of patterns 1440-1454 outputfrom the JTAG controller is serialized by the PSC and de-serialized bythe SPC to be input to the Tap Domains as TDI and TMS pattern sequences1454-1468. As seen the process of serializing and de-serializing thepatterns causes TDI and TMS patterns input to the Tap Domains to lagbehind the TMS and TDO patterns output from the JTAG controller.

If the JTAG controller were conventionally connected to the Tap Domainsas seen in FIG. 1, the TDO to TDI data shift operation between themwould occur on the rising edge of the CKIN and TCK at time 1470, i.e.when the Tap Domains transition from the Shift-DR (SFD) state to theExit1-DR (X1D) state. However due to the pattern lag, the TDO to TDIdata shift operation between them occurs on the rising edge of the CKINand TCK at time 1472. The shift in of the TDO data output from the JTAGcontroller to the TDI input of the Tap Domains is not effected by thepattern lag since the TDO data remains in the TDI and TMS pattern inputto the Tap Domains following the serialization and de-serializationprocess and is clocked into the Tap Domains on the rising edge of TCK1472. However, the JTAG controller will not input the correct TDO outputfrom the Tap Domains on the rising edge of CKIN 1470 since, due to thepattern lag, the correct TDO output (shown as dark filled) from the TapDomains is not output from the Tap Domains until the falling edge of TCK1470. Thus while TDO data from the JTAG controller is correctly input asTDI date to the Tap Domains, the TDO output from the Tap Domains isincorrectly input as TDI data to the JTAG controller.

JTAG controllers that are designed using Texas InstrumentsSN74/54ACT8990 JTAG bus controller chips can resolve the above mentionedpattern lag problem. The SN74/54ACT8990 JTAG bus controller chips weredesigned to operate with cabling between JTAG controllers and target ICsthat can register the TMS and TDO outputs from the JTAG controller tothe TMS and TDI inputs of the target IC.

FIG. 15 illustrates an arrangement whereby the ACT8990 JTAG controllerchip 1502 is interfaced to a target IC 1520 via a cable 1514 thatincludes FFs 1516-1518 in the path between the ACT8990's TMS and TDOoutputs and the target IC's TMS and TDI inputs. In this example thetarget IC sources the CKIN to the ACT8990 and also times the operationof FFs 1516 and 1518. As seen, the FFs 1516 and 1518 cause the TMS andTDI inputs to the target IC to lag the TMS and TDO output from theACT8990 similar to the way the PSC and SPC circuits of FIG. 14A causethe TMS and TDI inputs to IC 300 to lag the TMS and TDO output of theJTAG controller 100 in FIG. 14A.

A simplified block diagram of the ACT 8990 shows it containing a circuit1504 for transmitting the TMS signal, a circuit 1506 for transmittingthe TDO signal, a circuit 1510 from receiving the TDI signal, and acircuit 1508 for delaying the TMS signal 1512 input to the TDI receivercircuit 1510. The TDI receiver circuit responds to the TMS signal 1512,as per the Tap state diagram of FIG. 10, to know when to input the TDIsignal. In this example, all the circuits 1504-1510 are timed by theCKIN input from the TCK output of IC 1520.

If no FFs existed in the cable, i.e. TMS and TDO output of the ACT8990were directly connected to TMS and TDI inputs of the target IC, the TMSdelay circuit would be set to not delay the TMS signal input to the TDIreceiver. In this case the TDI receiver 1510 operates in step with theTap of the target IC 1520 such that TDI receiver 1510 inputs TDI data atthe same time that the Tap of IC 1520 inputs TDI data.

If the FFs existed in the path as shown, the TMS delay circuit is set todelay the operation of the TDI receiver for one CKIN cycle to allow theoperation of the TDI receiver to be synchronized with the operation ofthe Tap of IC 1520. By delaying the operation of the TDI receiver, theTDI receiver is made to operate in step with the delayed operation ofthe Tap of target IC 1520 such that TDI receiver 1510 inputs TDI data atthe same time that the Tap of IC 1520 inputs TDI data.

While the delay circuit 1508 of the ACT8990 JTAG bus controller chip wasoriginally designed to compensate for delays associated with cables, thepresent disclosure utilizes the delay circuit 1508 feature to compensatefor the delay associated with the serialization and de-serializationoperation of the PSC and SPC circuits in FIG. 14A.

For example, if the JTAG controller 100 of FIG. 14A used the ACT8990chip to control the JTAG bus, the delay circuit 1508 of the ACT8990could be set to delay the TDI input from the Tap Domains of IC 300 byone CKIN cycle such that the TDI input is correctly received on therising edge of CKIN 1472, as shown in the timing diagram of FIG. 14C.Thus the previously mentioned lag problem, due to the serialization andde-serialization process of the PSC and SPC circuits, is remedied byusing JTAG controllers 100 that incorporate the ACT8990 JTAG buscontroller chip or other chips/circuits that can similarly delay theinputting of TDI data from the Tap Domains 104 of FIG. 14A.

FIG. 16 illustrates a first system example wherein a JTAG controller 100and PSC 302 arrangement 1602 is coupled to the SPC 306 and Tap Domains104 of a target IC 1604 via DIO 308 and CLK 310 signal wiring. In thisexample a clock source 1606 within arrangement 1602 is used to drive theCLK signal that times the operation of the PSC and SPC circuits. In thisexample the target IC 1604 requires two dedicated pins for the DIO andCLK signals.

FIG. 17 illustrates a second system example wherein a JTAG controller100 and PSC 302 arrangement 1702 is coupled to the SPC 306 and TapDomains 104 of a target IC 1704 via DIO 308 and CLK 310 signal wiring.In this example a clock source 1706 within target IC 1704 is used todrive the CLK signal that times the operation of the PSC and SPCcircuits. In this example the target IC 1704 requires two dedicated pinsfor the DIO and CLK signals.

FIG. 18 illustrates a third system example wherein a JTAG controller 100and PSC 302 arrangement 1702 is coupled to the SPC 306 and Tap Domains104 of a target IC 1802 via a DIO 308 signal wire. In this example anexternal clock source 1804 used to input a functional clock to IC 1802via a functionally required clock input pin. The external clock sourcealso drives the CLK signal of PSC 302. Since the SPC 306 CLK input isconnected to and driven by the IC's functional clock, a dedicated pinfor the CLK signal 310 is not required on IC 1802. In this example thetarget IC 1802 requires only a dedicated pin for the DIO signal.

FIG. 19 illustrates a fourth system example wherein a JTAG controller100 and PSC 302 arrangement 1702 is coupled to the SPC 306 and TapDomains 104 of a target IC 1802 via a DIO 308 signal wire. In thisexample a functional clock is output from IC 1902 to drive the clockinput of a peripheral circuit 1904 via a functionally required clockoutput pin. Internal to the IC 1902, the functional clock is connectedto and drives the CLK input of SPC 306. External of the IC 1902, thefunctional clock is connected to and drives the CLK input of PSC 302.Since the PSC 302 CLK input is connected to the external functionalclock, a dedicated pin for the CLK signal 310 is not required on IC1902. In this example the target IC 1902 requires only a dedicated pinfor the DIO signal.

FIG. 20 illustrates a fifth system example wherein a JTAG controller 100and PSC 302 arrangement 1702 is coupled to the SPC 306 and Tap Domains104 of a target IC 1604 via DIO 308 and CLK 310 signal wiring. In thisexample a clock source 2002 external of both arrangement 1702 and IC1604 is used to drive the CLK signal that times the operation of the PSCand SPC circuits. In this example the target IC 1604 requires twodedicated pins for the DIO and CLK signals.

The above system examples of FIGS. 16-20 have shown various ways tointerface the PSC and SPC circuits together such that at most theinterface requires two dedicated IC pins for DIO and CLK and at leastthe interface only requires one dedicated pin for DIO. Thus the presentdisclosure is seen to require only one or two dedicated pins on thetarget IC.

The following Figures illustrate an alternate version of the presentdisclosure whereby the SPC 302 and PSC 306 circuits do not use I/Ocircuits 504 and 710, respectively.

FIG. 21A illustrates a JTAG controller 100 interfaced to an alternatePSC circuit 2102. The PSC circuit 2102 is identical to the PSC 302 ofFIG. 5A with the exception that the I/O circuit 504 is not used in PSCcircuit 2102. As seen, without the I/O circuit 504 the OUT output fromPISO 502 is directly output from the PSC via output buffer 1104. Also asseen, without the I/O circuit 504 the TDO input goes directly to the TDIinput of the JTAG controller 100 via an input buffer 1308. As seen inFIG. 21B, the operation timing of the alternate PSC 2102 and JTAGcontroller 100 is identical to the FIG. 5B timing operation of the PSC302 and JTAG controller 100 of FIG. 5A.

FIG. 22A illustrates an alternate SPC circuit 2202 interfaced to TapDomains 104 of target IC 2204. The SPC circuit 2202 is identical to theSPC 302 of FIG. 7A with the exception that the I/O circuit 710 is notused in SPC circuit 2202. As seen, without the I/O circuit 710 the OUTinput to SPC 2202 is directly input to the MRS 708 and SIPO 702 circuitsvia a second input buffer 1308. Also as seen, without the I/O circuit710 the TDO output from Tap Domains 104 is directly output from SPC 2202via 3-state buffer 1110. Buffer 2206 is enabled by the OE signal fromTSM 706. The pull up (PU) element 1114 is connected to the IN signal topull the IN signal high when it is not being externally driven forreasons previously mentioned. As seen in FIG. 22B, the operation timingof the alternate SPC 2202 and Tap Domains 104 is identical to the FIG.7B timing operation of the SPC 302 and Tap Domains 104 of FIG. 7A.

FIG. 23A shows a complete arrangement where the JTAG controller 100 andalternate PSC 2102 are connected to and are communicating with thealternate SPC 2202 and Tap Domains 104 of target IC 2302 via the OUT,CLK, and TDO signals. For simplification only the circuit elements ofthe alternate PSC 2102 and SPC 2202 that are involved with thecommunication process are shown. As seen the OUT output from PSC 2102 isdirectly input to the IN input of the SPC 2202 and the TDO output fromTap Domains 104 is directly input to the TDI input of JTAG controller100. As seen in FIG. 23B, the operation timing of the FIG. 23Aarrangement is identical to the FIG. 14B timing operation of the FIG.14A arrangement.

FIG. 24 illustrates the previously described clocking arrangement of theFIG. 16 system. In FIG. 24, alternate PSC 2102 is used instead of PSC302 and alternate SPC 2202 is used instead of SPC 306. As seen, the IC2402 requires three dedicated pins for OUT, TDO, and CLK.

FIG. 25 illustrates the previously described clocking arrangement ofFIG. 17 system. In FIG. 25, alternate PSC 2102 is used instead of PSC302 and alternate SPC 2202 is used instead of SPC 306. As seen, the IC2502 requires three dedicated pins for OUT, TDO, and CLK.

FIG. 26 illustrates the previously described clocking arrangement ofFIG. 18 system. In FIG. 26, alternate PSC 2102 is used instead of PSC302 and alternate SPC 2202 is used instead of SPC 306. As seen, the IC2602 requires two dedicated pins for OUT and TDO.

FIG. 27 illustrates the previously described clocking arrangement ofFIG. 19 system. In FIG. 27, alternate PSC 2102 is used instead of PSC302 and alternate SPC 2202 is used instead of SPC 306. As seen, the IC2702 requires two dedicated pins for OUT and TDO.

FIG. 28 illustrates the previously described clocking arrangement ofFIG. 20 system. In FIG. 28, alternate PSC 2102 is used instead of PSC302 and alternate SPC 2202 is used instead of SPC 306. As seen, the IC2402 requires three dedicated pins for OUT, TDO, and CLK.

The above system examples of FIGS. 24-28 have shown various ways tointerface the alternate PSC 2102 and SPC 2202 circuits together suchthat at most the interface requires three dedicated IC pins for OUT, TDOand CLK, and at least the interface only requires two dedicated pin forOUT and TDO. Thus the alternate version of the present disclosure isseen to require only two or three dedicated pins on the target IC.

In reference to FIGS. 14A, 14B, 14C, 23A, and 23B it is seen that thefrequency of the CKIN and TCK signals is one half the frequency of thesource driving the CLK signal. Therefore the JTAG controller and the TapDomains operate together at one half the frequency of the CLK sources.For example, if the CLK frequency is 100 Mhz, the JTAG operations willoccur at 50 Mhz. Thus the second objective of the present disclosure,stated in the DESCRIPTION OF THE RELATED ART section, of providing areduced pin interface capable of operating at one half the frequency ofthe standard 5 pin JTAG interface is achieved.

It should be understood that while the SPC 306 and 2202 of the presentdisclosure has been shown as it would be used for accessing Tap Domainswithin ICs, the SPC is not limited to only accessing Tap Domains withinICs. Indeed, as the need may arise, the SPC can be used within embeddedcore circuits of an IC to allow accessing Tap Domains that exists withinthose embedded core circuits. The teaching in the present disclosure ofhow to use an SPC in an IC is sufficiently detailed to enable oneskilled in the art to also use the SPC within an embedded core.

The following description describes an extension to the prior disclosuredescribed above in regard to FIGS. 1-28. The extension enables the portof target devices to be addressable so that a controller may selectivelyenable one of a plurality of target device ports for communication.Further the ports may be made addressable and commandable to allow thecontroller to address a port and input a command to enable a JTAG orTrace operation on the addressed port.

As seen in FIG. 3, the interface between the PSC 302 and SPC 306 is apoint to point interface, meaning that the JTAG controller 100 can onlycommunicate to TAP Domains 104 of a connected target IC 300. If morethat one target IC 300 existed, the DIO 308 and CLK 310 connection wouldhave to be physically moved from one target IC to the next to allow theJTAG controller to communicate with multiple target ICs.

The following describes an extension of the present disclosure thatallows a JTAG controller and PSC to selectively communicate to aplurality of connected target ICs through the use of an addressingtechnique. The extension of the present disclosure further includes acommanding technique that allows the addressed target IC to performeither a JTAG operation, as previously described, or a Trace operationto be described herein.

FIG. 29 illustrates the configuration of a JTAG controller 2902connected to a plurality of target devices (ICs or cores within ICs)2904-2908 via the DIO and CLK bus 2910 of the extension of the presentdisclosure. The addressing technique extension allows the JTAGcontroller 2902 to select any one of the target devices connected to thebus. Once selected the JTAG controller can communicate to the selectedtarget device via the DIO and CLK bus as previously described. Further,the addressing technique extension allows the JTAG controller to selecta group of target devices connected to the bus. Once selected the groupof target devices can be controlled via the JTAG controller.

The commanding technique extension allows the JTAG controller to performeither JTAG operations or trace operations on a selected target device.The trace operation allows the target device to output trace data to theJTAG controller over the DIO bus signal. The trace data is typicallydata or address signals that can reveal the functioning operation of thetarget device in its normal operating mode. Trace operations are usefulin the development and debug of target device software algorithms. Thetrace operations will be described in more detail later in thisapplication.

Using the addressing technique, JTAG boundary scan operations can beperformed on the interconnects 2912 between the target devices. Forexample each target device can be individually addressed to allowcapturing boundary response test data from interconnects 2912 into theirboundary scan registers and shifting the captured response test data outwhile shifting boundary stimulus test data in. Following the boundarycapture and shift operations, all target devices may be group addressedto allow simultaneously updating the shifted in boundary stimulus testdata to interconnects 2912 from their boundary scan registers. Thus thepresent disclosure allows the DIO and CLK bus to perform JTAG boundaryscan operations on the target devices to test the interconnects betweenthe target devices.

FIG. 30 illustrates a target device 3002 comprising an address andcommand port (ACP) 3004, Tap domains 3006, and trace domains 3008. TheTap domains 3006 are similar to the previously described Tap domains 104and detailed in FIGS. 4A-4C. The Tap domains 3006 are interfaced to theACP 3004 via the TDI, TMS, TCK, TDO, and TRST signals as previouslydescribed. With the ability to perform JTAG boundary scan testingbetween target devices, as mentioned in regard to FIG. 29, the TAPdomains 3006 preferably will contain a Tap domain for the standard IEEE1149.1 boundary scan architecture, in addition to other TAP domains usedfor test, emulation, debug, and trace, to allow boundary scan testing tobe performed on the interconnects 2912 between multiple target devices.The IEEE 1149.1 boundary scan architecture TAP domain will contain theTAP, bypass register, optional data registers, boundary scan register,and instruction register. The boundary scan register can be used toperform test input and output operations at the target device boundaryas described in the IEEE 1149.1 standard. The other TAP domains willcontain the TAP, bypass register, optional data registers, theinstruction register, but not necessarily a boundary scan register.

The trace domains 3008 are interfaced to the ACP 3004 via Trace, RunTest/Idle (RTI), ShiftDR, trace clock (TRCK), and trace output (TROUT)signals. The trace domains are also interfaced to Tap domains within Tapdomain 3006 via TDI, Tap control (CTL), and TDO signals.

FIG. 31A illustrates that each trace domain 1-N may be associated with aTap domain 1-N in Tap domain block 3006. For example, Tap domain 1 maybe coupled to trace domain 1 via TDI, CTL, and TDO signals, Tap domain 2may be coupled to trace domain 2 via TDI, CTL, and TDO signals, and soon. The trace domains are all connected to the ACP 3004 via the Trace,RTI, ShiftDR, TRCK, and TROUT signals. In this example, a Tap domain maybe selected by the ACP 3004 and operated to setup and enable itsassociated trace domain to perform a trace operation. A TAP domain setsup and enables a Trace domain to perform a trace operation by scanningdata and command information into the Trace domain via the TDI, CTL, andTDO interface between the Trace domain and TAP domain. Multiple Tracedomains may be enabled at the same time to perform a trace operation.However, only one trace domain may be selected at a time for outputtingtrace data acquired during the trace operation. When one trace domain isselected for outputting data on TROUT all other trace domains willdisable their TROUT output to allow only the selected Trace domain tooutput data from its TROUT to the DIO 308 signal of the ACP, via I/Ocircuit 710. While multiple trace domains are shown in this example,only one trace domain may be used as well. Further, a trace domain doesnot have to be associated with each Tap domain.

FIG. 31B illustrates an alternate arrangement whereby a plurality oftrace domains 1-N may be adapted for coupling to a single Tap domain, asper a multiplicity of TDI, CTL, and TDO signals, previously described,have been adapted for such a coupling as per the arrangement shown. Inthis example, the single Tap domain is used to setup and enable tracedomains to perform trace operations. As in the FIG. 31A example,multiple Trace domains may be enabled to acquire trace data, but onlyone Trace domain at a time can be enabled to output its acquired tracedata on TROUT. The other Tap domains 2-N in FIG. 31B may or may not beassociated with trace domains.

Referring back to FIG. 30, the ACP 3004 is similar to the previouslydescribed SPC 306 in that it includes I/O circuit 710, SIPO 702,Register 704, controller 700, and POR 712, all having the same operationand structural inputs and outputs as previously described. The ACPdiffers from SPC 306 in that it includes master controller 3010, TSM3012, gates 3014 and 3016, and multiplexer 3018. Multiplexer 3018 allowscoupling the TDO output of Tap domains 3006 to the input of I/O circuit710, the trace output (TROUT) of the trace domains 3008 to the input ofI/O circuit 710, or to couple a fixed logic one to the input of I/Ocircuit 710, depending on the settings of the JTAG and Trace signaloutputs of master controller 3010.

The master controller 3010 substitutes for the MRS circuit 708 of FIG.7A and includes the master reset and PSC to SPC synchronization featuresof the MRS circuit. In addition, the master controller is extended toprovide the additional feature of allowing the ACP to be addressed andcommanded to perform either JTAG or Trace operations. Once the ACP hasbeen addressed and commanded it either performs JTAG operations verysimilar to those described with the SPC, or it performs trace operationsas described later in this application.

Master controller 3010 outputs the previously described CENA signal tocontroller 700, the previously described MRST signal to TSM 3012,register 704, and Tap Domains 3006. The master controller outputs a newsignal referred to as “JTAG” to And gate 3016 and multiplexer 3018, anew signal referred to as “Enable” to And gate 3014, and a new signalreferred to as “Trace” to Trace Domains 3008 and multiplexer 3018. TheCENA output is used to enable controller 700, the MRST output is used toreset the ACP circuits, Tap domains, and Trace domains, the JTAG outputis used to enable access to the Tap domains and to couple the TDO outputof the Tap domains to the I/O circuit via multiplexer 3018, the Traceoutput is used to enable the trace domains for trace operations and tocouple the TROUT output of the Trace domains to the I/O circuit viamultiplexer 3018.

Master controller 3010 inputs the previously described RST signal fromTSM 3012, the previously described IN signal from I/O circuit 710, thepreviously described CLK signal 310, and the previously described poweron reset signal from POR circuit 712. The master controller inputs newsignals referred to as “RTI” and “PSE” from TSM 3012. The mastercontroller also inputs the TDI and TMS signals from register 704. TheRST input is used to reset the master controller, the IN input is usedto maintain the master controller in a reset state or to input thepreviously described synchronization pattern, the CLK input times theoperation of the master controller, the POR input resets the mastercontroller at power up, the RTI input indicates to the master controllerwhen the TSM is in the Run Test/Idle state, the PSE input indicates tothe master controller when the TSM is in the Pause-IR or Pause-DR state,and the TDI and TMS inputs are used to input address and command inputsto the master controller.

FIG. 32 illustrates an example design of the TSM 3012. The TSM 3012includes an IEEE 1149.1 Tap state machine 3201 operating according tothe state diagram of FIG. 10. The Tap state machine inputs the TCK, TMSand MRST (TRST) signals. The Tap state machine outputs are coupled togating 3202-3206. Gating 3202 decodes when the Tap state machine is inthe Shift-DR state (see FIG. 10) and outputs the ShiftDR signal inresponse. Gating 3204 decodes when the Tap state machine is in the RunTest/Idle state and outputs the RTI signal in response. Gating 3206decodes when the Tap state machine is in either the Pause-IR or Pause-DRstates and outputs the PSE signal in response. The OE enable signal iscoupled to the Enable output of the Tap state machine. The RST output iscoupled to the Reset* output of the Tap state machine.

FIG. 33 illustrates an example design of the master controller 3010. Bycomparison with the MRS circuit 708 of FIG. 9A, it is seen that themaster controller 3010 is an extension of MRS circuit 708. The mastercontroller comprises a state machine 3302, a shift register 3304, anaddress compare circuit 3306, a local address source 3308, a groupaddress source 3310, FFs 3312-3318, and And gate 3320. The TDI signal isinput to the state machine and shift register. The TMS, PSE, RTI, IN,and RST signals are input to the state machine. The CLK signal is inputto the state machine and an inverted CLK signal is input to the FFs. ThePOR signal is input to the state machine and the FFs. The MRST signal isoutput from the state machine. The JTAG, Trace, Enable, and CENA signalsare output from the state machine via FFs 3312-3318.

The state machine inputs a local address indication signal (Local) and aglobal address indication signal (Global) from the address comparecircuit 3306. The state machine inputs a command signal (Command) fromshift register 3304. The state machine outputs a shift (SHF) signal togate 3320 to gate the inverted CLK input to the shift clock (SCK) inputof the shift register.

The shift register 3304 inputs the TDI signal, the SCK signal, and theTRST signal. The shift register outputs address signals to addresscompare circuit 3306 and command signals to state machine 3302. Addressand command data is shifted into the shift register from the TDI inputin response to the SCK. The shift register is reset to all zeros inresponse to a low on the MRST input.

The address compare circuit 3306 inputs the address signals from shiftregister 3304, the local address signals from local address source 3308,and the group address signals from group address source 3310. Theaddress compare circuit outputs the Local and Group address indicatorsignals to the state machine 3302.

The local address source 3308 is the address of the ACP 3004. The Localaddress for each ACP is unique to allow each ACP to be individuallyaddressed. An all zero address may not be used as a Local address, sincethe all zero address is the value contained in the shift register 3304following a MRST reset input. No ACP is addressed when the shiftregister contains the all zero address. While this exampleimplementation uses the all zero address as a non-address value, anotheraddress, such as all ones, could have been used as well for thenon-address value. The address of the local address source may beprovided as a hardwired address, a programmable address, an addressrandomly generated at power up, an address shifted into a shiftregister, an address written to a parallel register/memory location, anaddress provided at IC pins or core terminals, or by any other suitablemeans for providing a unique address.

The group address source 3310 is a source providing a single Groupaddress that recognizable by all ACPs 3004. The Group address must beunique from any assigned local address. Also the Group address must notbe an all zero value since, as mentioned above, that is the addressvalue in the shift register following a MRST reset input. The Groupaddress is a common and fixed address in all ACPs.

FIG. 34 illustrates the high-level block diagram operation of the mastercontroller's state machine 3302. In response to a low on the POR inputor a low on the RST input, the state machine will enter the Master Reset& Synchronization block 3402. The state machine will remain the MasterReset & Synchronization block while the IN input is high. When thepreviously described synchronization input sequence occurs on the INinput, the state machine will transition to the Input Address & Commandblock 3406 to input an address and a command.

Depending upon the address and command input, the state machine will;(1) select a local JTAG operation and transition to the Execute JTAG &Trace operation block 3408 to execute the JTAG operation, (2) select agroup JTAG operation and transition to the Execute JTAG & Traceoperation block 3408 to execute the group JTAG operation, (3) select alocal Trace operation and transition to the Execute JTAG & Traceoperation block 3408 to execute the Trace operation, (4) select a groupTrace operation and transition to the Execute JTAG & Trace operationblock 3408 to execute the Trace operation, or (5) deselect JTAG & Traceoperations and transition to the Execute JTAG & Trace operation block3408 and perform no JTAG or Trace operation. If the RST signal goes lowwhile the state machine is in the Input Address & Command block 3406,the state machine will return to the Master Reset & Synchronizationblock 3402.

The state machine will remain in the Execute JTAG & Trace Operationblock 3408 during transitions through JTAG instruction register scanoperations as per FIG. 10, during transitions through JTAG data registerscan operations as per FIG. 10, during transitions into the RunTest/Idle (RTI) state (if TDI is set low) as per FIG. 10, and duringtransitions into the Pause-IR or Pause-DR (PSE) states (if TDI is setlow) as per FIG. 10.

The state machine will transition from the Execute JTAG & TraceOperation block 3408 to the Input Address & Command block 3406 in theRun Test/Idle state (RTI), the Pause-IR state (PSE), or the Pause-DRstate (PSE) if TDI is set high. The process of setting TDI high in theRun Test/Idle, Pause-IR, or Pause-DR state is a signaling scheme use tocause the state machine to transition from the Execute JTAG or Traceoperation block to the Input Address & Command block 3406 so thatanother address and command may be input to the ACP. The state machinewill transition from the Execute JTAG & Trace Operation block 3408 tothe Master Reset & Synchronization block 3402 when the RST signal is setlow. Entry into the Master Reset & Synchronization block 3402 from theExecute JTAG & Trace Operation block 3408 is typically done after allpending JTAG or Trace operations have been completed.

FIG. 35 illustrates a more detailed state diagram of the Master Reset &Synchronization block 3402 of the master controller 3010. By inspection,the state diagram of the Master Reset & Synchronization block 3402 isseen to be similar to the previously described state diagram of the MRScircuit 708 of FIG. 9B. For example, state 3502 of FIG. 35 is similar tostate 904 of FIG. 9B, states 3504-3510 of FIG. 35 are similar to states906-912 of FIG. 9B, and state 3502 of FIG. 35 is similar to state 914 ofFIG. 9B. Also a low on POR will cause entry into state 3502 of FIG. 35,as it caused entry into state 904 of FIG. 9B.

The differences between the state diagram of FIG. 35 and FIG. 9B isthat; (1) state 3502 of FIG. 35 sets the new JTAG, Trace, and Enablesignals low in addition to setting the previously described MRST signallow, and (2) state 3512 unconditionally transitions to the Input Address& Command block 3406 whereas state 914 of FIG. 9B either transitions tothe state 904 if RST is low or remains in state 914 if RST is high.

As can be understood from the previous description of MRS circuit 708and state diagram 9B, the state diagram of FIG. 35 provides the samemaster reset and synchronization features as provided in state diagram9B. However, after having performed the synchronization feature, thestate diagram of FIG. 35 transitions through the “Set CE Low” state 3512to enter the Input Address & Command state 3406, instead of remaining inthe “Set CE Low” state 914 as does the state diagram of FIG. 9B. Asindicated in FIG. 35, all Tap domains 3006 will be in the Run Test/Idle(RTI) state when the transition occurs from state 3502 to the InputAddress & Command block 3406.

FIG. 36 illustrates a more detailed state diagram of the Input Address &Command block 3406 of the master controller 3008. As seen, entry intothe Input Address & Command block 3406 from either the Master Reset &Synchronization block 3402 or the Execute JTAG or Trace block 3408 willbe to the “Clock in TDI Command Bit” state 3602. Also as seen, entryinto the Input Address & Command block 3406 can only occur in the TSM isin either the Run Test/Idle (RTI) or Pause-IR/Pause-DR (PSE) states. Instate 3602 the SHF signal output from state machine 3302 is set high toallow gating a CLK 310 input to the shift register 3304 so that thelogic value on the TDI input from register 704 is shifted into shiftregister 3304 of FIG. 33. The TDI logic value is a command thatdetermines whether the operation will be a JTAG operation or Traceoperation. The next state 3604 is a “Delay” state that compensates forthe shifting in of the TMS signal prior to the shifting in of the nextTDI signal into SIPO 702. As previously described in FIGS. 7A and 7B,the SIPO 702 receives two bit packets of serial TMS and TDI signals fromPISO 502. Thus “Delay” states are included in the state diagram to allowthe shift register 3304 to correctly input the TDI signal of eachshifted in two bit packet. During “Delay” states, the SHF signal outputof state machine 3302 is set low to gate off the CLK input to shiftregister 3304. The next state 3606 is the “Clock in TDI Address Bit 1”state, which is used to shift the first address bit into shift register3304. In state 3606, the SHF signal is set high to gate a CLK input toshift register 3304 to shift in the first address bit from TDI. As seenthe state machine continues to transition through additional “Delay” and“Clock in TDI Address Bit” states 3608-3616 until the all address bitshave been input to shift register 3304.

After the command and address bits have been shifted into shift register3304, the state machine 3302 transitions to the “Evaluate Address &Command” state 3618. One of the following actions 3620-3628 will occuras a result of the evaluation in state 3618.

Action 3620—If the address bits match the Local address (Local=1), theRTI or PSE signal is high, and the command is a JTAG command(Command=1), the state machine will set the JTAG signal high (JTAG=1),the Trace signal low (Trace=0), and the Enable signal high (Enable=1),and transition to the Execute JTAG or Trace Operation block 3408 toperform a local JTAG operation.

Action 3622—If the address bits match the Group address (Group=1), thePSE signal is high, and the command is a JTAG command (Command=1), thestate machine will set the JTAG signal high (JTAG=1), the Trace signallow (Trace=0), and the Enable signal low (Enable=0), and transition tothe Execute JTAG or Trace Operation block 3406 to perform a group JTAGoperation.

Action 3624—If the address bits match the Local address (Local=1), theRTI or PSE signal is high, and the command is a Trace command(Command=0), the state machine will set the JTAG signal low (JTAG=0),the Trace signal high (Trace=1), and the Enable signal high (Enable=1),and transition to the Execute JTAG or Trace Operation block 3406 toperform a local Trace operation.

Action 3626—If the address bits match the Group address (Group=1), thePSE signal is high, and the command is a Trace command (Command=0), thestate machine will set the JTAG signal low (JTAG=0), the Trace signalhigh (Trace=1), and the Enable signal low (Enable=0), and transition tothe Execute JTAG or Trace Operation block 3406 to perform a group Traceoperation.

Action 3628—If the address bits do not match the Local or Group address,the state machine will set the JTAG signal low (JTAG=0), the Tracesignal low (Trace=0), and the Enable signal low (Enable=0), andtransition to the Execute JTAG or Trace Operation block 3406. No JTAG orTrace operation occurs in the Execute JTAG or Trace Operation block as aresult of this action.

While the above described address and command input sequence used only asingle command bit input, it could easily be expanded to includemultiple command bit inputs as well. The use of multiple command bitinputs would allow future expansion of the commanding capability toallow additional operations beyond just JTAG or Trace to be performed bythe present disclosure. Further, while the above described address andcommand input sequence choose to input the command first and the addresssecond, this could be reversed to inputting the address first and thecommand second if desired.

To facilitate standardized use of the present disclosure, it issuggested that the length of the address and command bit fields befixed, i.e. the command bit field is preferably a fixed number of bitsand the address bit field is preferably a fixed number of bits. Further,and again to facilitate standardization, it is suggested that one of theaddresses within the address field be designated as an address not to beused by any ACP 3004. This would allow for one address to be reserved asa global disconnect address that, if input to a group of ACPs, wouldguarantee that none of the ACPs would be addressed, i.e. Action 3628would take place. It is logical that the previously mentioned all “zeroaddress”, i.e. the address contained in shift register 3304 of FIG. 33following a MRST reset input, be used as the global disconnect address,since that address does not to select any ACP. The ability to globallydisconnect all ACPs facilitates the JTAG and Trace group addressingfeature of the present disclosure as will be describe in more detaillater.

The following FIGS. 37-47 illustrate timing diagrams of the ACP 3004 ofFIG. 30 operating to select and deselect JTAG TAP domain operations. InFIGS. 37-47, the CLK is running to; (1) input the previously describedserial TMS and TDI signal packets (shown in dotted boxes) from the INsignal to SIPO 702, (2) generate the previously described UCK toregister 704, and (3) generate the previously described TCK signal tothe TAP domains 3006 and TSM 3012. A “D” signal in a TMS and TDI packetindicates that TDI is either an JTAG instruction or data bit, a “C”signal in a packet indicates that TDI is a command bit, an “A” signal ina packet indicates that TDI is an address bit, a “0” signal in a packetindicates when TMS or TDI is low, and a “1” signal in a packet indicateswhen TMS or TDI is high. To simplify the timing examples, it is assumedthat the master controller 3010 of the ACP has been designed to includeone command (C) bit and three address (A) bits.

FIG. 37 illustrates the timing of selecting a JTAG TAP domain in the RunTest/Idle (RTI) state. As seen, initially the TAP domain is deselectedin the RTI state, the master controller 3010 is in the Execute JTAG orTrace block 3408, and the TSM 3012 is transitioning through the TAPstates of FIG. 10, according to the TMS signal updated from register704. When TMS and TDO packet 3702 is updated from register 704 the TSMtransitions from the Shift-DR or Shift-IR (SFD/I) state to the Exit1-DRor Exit1-IR (X1D/I) state, respectively, on TCK 3722. When packet 3704is updated from register 704 the TSM transitions from the X1D/I state tothe Update-DR or Update-IR (UPD/I) state, respectively, on TCK 3724.When packet 3706 is updated from register 704 the TSM transitions fromthe UPD/I state to the RTI state on TCK 3726 and sets the RTI signalhigh. The TDI value in packet 3706 is set high as the previouslydescribed signal that enables the master controller 3010 to transitionfrom the Execute JTAG & Trace Operation block 3408 to the Input Address& Command block 3406. The master controller transitions to the InputAddress & Command block upon detecting that RTI and TDI are both high attime 3740.

When packet 3708 is updated from register 704, the command (C) bit onTDI is shifted into shift register 3304 on SCK 3742. Since a JTAGoperation is being selected, the command bit will be set high. Whenpacket 3710 is updated from register 704, the first address (A1) bit onTDI is shifted into shift register 3304 on SCK 3744. When packet 3712 isupdated from register 704, the second address (A2) bit on TDI is shiftedinto shift register 3304 on SCK 3746. When packet 3714 is updated fromregister 704, the third address (A3) bit on TDI is shifted into shiftregister 3304 on SCK 3748. At time 3750, the master controller evaluatesthe command (C) and address (A) bits in shift register 3304.

If the command bit is high and the address bits match the Local ACPaddress the master controller will perform action 3620 of FIG. 36 andtransition to the Execute JTAG & Trace Operation block 3408. Since theenable input to And gate 3014 is set high by action 3620, the selectedJTAG TAP domain outputs TDO data to DIO during Shift-DR and Shift-IRstates. All non-addressed ACP master controllers will perform action3628 and transition to the Execute JTAG & Trace Operation block 3408.

In FIG. 37, the dotted line 3752 on the Trace signal indicates that if aTrace operation was previously selected it would become deselected attime 3750 as a result of the above mentioned action 3620.

When packet 3718 is updated from register 704 the TSM and TAP domains ofthe addressed ACP will transition from the RTI state to the Select-DR(SLD) state on TCK 3738 to initiate a JTAG operation. In response toupdated packet 3718 only the TSM of non-addressed ACPs will transitionfrom the RTI state to the SLD state, i.e. the TAP domains ofnon-selected ACPs will remain deselected in the RTI state. As seen inthis example, packet 3720 will cause the TSM and TAP domains of theaddressed ACP and the TSM of non-addressed ACPs to further transitionfrom the SLD to the Select-IR (SLI) state.

As seen in FIG. 37, the TDI bits of packets 3702-3720 remain low unlessthe TDI bit of a packet is inputting a JTAG instruction or data bit (D),a command bit (C), an address bit (A), or the high signal (packet 3706)that causes a transition from the Execute JTAG & Trace Operation block3408 to the Input Address & Command block 3406 at time 3740. Also theTMS bits of packets 3708-3716 remain low until the ACP's address andcommand input operation has been completed. Maintaining TMS low duringthe address and command input operation causes the ACP's mastercontroller, TSM, and any selected TAP domain to remain in the RTI state.

FIG. 38 illustrates the timing of the ACP and a selected JTAG TAP domaintransitioning through the RTI state during the Execute JTAG & TraceOperation block 3408 without invoking an address and command inputoperation. As seen, with the TDI bit of packet 3806 set low the ACP'smaster controller remains in the Execute JTAG & Trace Operation block3408 during transition through RTI state.

FIG. 39 illustrates the timing of the ACP and a selected JTAG TAP domaintransitioning to the RTI state during the Execute JTAG & Trace Operationblock 3408 and invoking an address and command input operation. As seen,with the TDI bit of packet 3906 set high the ACP's master controllertransitions to the Input Address & Command block 3406 at time 3940 toinput a new address and command. The new address and command areevaluated at time 3950. In this example, the result of the evaluation isaction 3628 which deselects the currently selected ACP and JTAG TAPdomain. The result of the evaluation at time 3950 could result in theselection of a another ACP and JTAG TAP domain, or it could result inthe de-selection of all ACPs and JTAG TAP domains if the new address isthe previously mentioned global disconnect address.

In FIG. 39, the dotted line 3952 on the Trace signal indicates that ifthe result of the evaluation at time 3950 were action 3624 instead ofaction 3628, a Trace operation would be selected.

FIG. 40 illustrates the timing of selecting a JTAG TAP domain in thePause-DR (PDR) state. As seen, initially the TAP domain is deselected inthe PDR state, the master controller 3010 is in the Execute JTAG orTrace block 3408, and the TSM 3012 is transitioning through the TAPstates of FIG. 10 in response to the TMS signal from register 704. WhenTMS and TDO packet 4004 is updated from register 704 the TSM transitionsfrom the Shift-DR (SFD) state to the Exit1-DR (X1D) state on TCK 4024.When packet 4006 is updated from register 704 the TSM transitions fromthe X1D state to the Pause-DR (PDR) state on TCK 4026 and sets the PSEsignal high. The TDI value in packet 4006 is set high as the previouslydescribed signal that enables the master controller 3010 to transitionfrom the Execute JTAG & Trace Operation block 3408 to the Input Address& Command block 3406. The master controller transitions to the InputAddress & Command block upon detecting that PSE and TDI are both high attime 4040.

When packet 4008 is updated from register 704, the command (C) bit onTDI is shifted into shift register 3304 on SCK 4042. Since a JTAGoperation is being selected, the command bit will be set high. Whenpacket 4010 is updated from register 704, the first address (A1) bit onTDI is shifted into shift register 3304 on SCK 4044. When packet 4012 isupdated from register 704, the second address (A2) bit on TDI is shiftedinto shift register 3304 on SCK 4046. When packet 4014 is updated fromregister 704, the third address (A3) bit on TDI is shifted into shiftregister 3304 on SCK 4048. At time 4050, the master controller evaluatesthe command (C) and address (A) bits in shift register 3304.

If the command bit is high and the address bits match the Local ACPaddress the master controller will perform action 3620 of FIG. 36 andtransition to the Execute JTAG & Trace Operation block 3408. Since theenable input to And gate 3014 is set high by action 3620, the selectedJTAG TAP domain outputs TDO data to DIO during Shift-DR and Shift-IRstates. All non-addressed ACP master controllers will perform action3628 and transition to the Execute JTAG & Trace Operation block 3408.

If the command bit is high and the address bits match the Group ACPaddress all ACP master controllers that have been previously deselectedin the PDR state will perform action 3622 of FIG. 36 and transition tothe Execute JTAG & Trace Operation block 3408. During JTAG Groupaddressing, JTAG TAP domains of all Group selected ACPs transitionthrough the TAP states of FIG. 10, but no JTAG TAP domain outputs TDOdata on DIO since the enable input to And gate 3014 is set low by action3622.

In FIG. 40, the dotted line 4052 on the Trace signal indicates that if aTrace operation was previously selected it would become deselected attime 4050 as a result of the above mentioned actions 3620 and 3622.

When packet 4018 is updated from register 704 the TSM and TAP domains ofthe addressed ACP(s) will transition from the PDR state to the Exit2-DR(X2D) state on TCK 4038 to initiate a JTAG operation. In response toupdated packet 4018 only the TSM of non-addressed ACPs will transitionfrom the PDR state to the X2D state, i.e. the TAP domains ofnon-selected ACPs will remain deselected in the PDR state. As seen inthis example, packet 4020 will cause the TSM and TAP domains of theaddressed ACP(s) and the TSM of non-addressed ACPs to further transitionfrom the X2D to the Update-DR (UPD) state.

As seen in FIG. 40, the TDI bits of packets 4002-4020 remain low unlessthe TDI bit of a packet is inputting a JTAG instruction or data bit (D),a command bit (C), an address bit (A), or the high signal (packet 4006)that causes a transition from the Execute JTAG & Trace Operation block3408 to the Input Address & Command block 3406 at time 4040. Also theTMS bits of packets 4008-4016 remain low until the ACP's address andcommand input operation has been completed. Maintaining TMS low duringthe address and command input operation causes the ACP's mastercontroller, TSM, and any selected TAP domain to remain in the PDR state.

FIG. 41 illustrates the timing of the ACP and a selected JTAG TAP domaintransitioning through the PDR state during the Execute JTAG & TraceOperation block 3408 without invoking an address and command inputoperation. As seen, with the TDI bit of packet 4106 set low the ACP'smaster controller remains in the Execute JTAG & Trace Operation block3408 during transition through PDR state.

FIG. 42 illustrates the timing of the ACP and a selected JTAG TAP domaintransitioning to the PDR state during the Execute JTAG & Trace Operationblock 3408 and invoking an address and command input operation. As seen,with the TDI bit of packet 4006 set high the ACP's master controllertransitions to the Input Address & Command block 3406 at time 4240 toinput a new address and command. The new address and command areevaluated at time 4250. In this example, the result of the evaluation isaction 3628 which deselects the currently selected ACP(s) and JTAG TAPdomain(s). The result of the evaluation at time 4250 could result in theselection of a another ACP and JTAG TAP domain, or it could result inthe de-selection of all ACPs and JTAG TAP domains if the new address isthe previously mentioned global disconnect address.

In FIG. 42, the dotted line 4252 on the Trace signal indicates that ifthe result of the evaluation at time 4250 were action 3624 or 3626instead of action 3628, a Trace operation would be selected.

FIG. 43 illustrates the timing of selecting a JTAG TAP domain in thePause-IR (PIR) state. As seen, initially the TAP domain is deselected inthe PIR state, the master controller 3010 is in the Execute JTAG orTrace block 3408, and the TSM 3012 is transitioning through the TAPstates of FIG. 10 in response to the TMS signal from register 704. WhenTMS and TDO packet 4304 is updated from register 704 the TSM transitionsfrom the Shift-IR (SFI) state to the Exit1-IR (X1I) state on TCK 4324.When packet 4306 is updated from register 704 the TSM transitions fromthe X1I state to the Pause-IR (PIR) state on TCK 4326 and sets the PSEsignal high. The TDI value in packet 4306 is set high as the previouslydescribed signal that enables the master controller 3010 to transitionfrom the Execute JTAG & Trace Operation block 3408 to the Input Address& Command block 3406. The master controller transitions to the InputAddress & Command block upon detecting that PSE and TDI are both high attime 4340.

When packet 4308 is updated from register 704, the command (C) bit onTDI is shifted into shift register 3304 on SCK 4342. Since a JTAGoperation is being selected, the command bit will be set high. Whenpacket 4310 is updated from register 704, the first address (A1) bit onTDI is shifted into shift register 3304 on SCK 4344. When packet 4312 isupdated from register 704, the second address (A2) bit on TDI is shiftedinto shift register 3304 on SCK 4346. When packet 4314 is updated fromregister 704, the third address (A3) bit on TDI is shifted into shiftregister 3304 on SCK 4348. At time 4350, the master controller evaluatesthe command (C) and address (A) bits in shift register 3304.

If the command bit is high and the address bits match the Local ACPaddress the master controller will perform action 3620 of FIG. 36 andtransition to the Execute JTAG & Trace Operation block 3408. Since theenable input to And gate 3014 is set high by action 3620, the selectedJTAG TAP domain outputs TDO data to DIO during Shift-DR and Shift-IRstates. All non-addressed ACP master controllers will perform action3628 and transition to the Execute JTAG & Trace Operation block 3408.

If the command bit is high and the address bits match the Group ACPaddress all ACP master controllers that have been previously deselectedin the PIR state will perform action 3622 of FIG. 36 and transition tothe Execute JTAG & Trace Operation block 3408. During JTAG Groupaddressing, JTAG TAP domains of all Group selected ACPs transitionthrough the TAP states of FIG. 10, but no JTAG TAP domain outputs TDOdata on DIO since the enable input to And gate 3014 is set low by action3622.

In FIG. 43, the dotted line 4352 on the Trace signal indicates that if aTrace operation was previously selected it would become deselected attime 4350 as a result of the above mentioned actions 3620 and 3622.

When packet 4318 is updated from register 704 the TSM and TAP domains ofthe addressed ACP(s) will transition from the PIR state to the Exit2-IR(X2I) state on TCK 4338 to initiate a JTAG operation. In response toupdated packet 4318 only the TSM of non-addressed ACPs will transitionfrom the PIR state to the X2I state, i.e. the TAP domains ofnon-selected ACPs will remain deselected in the PIR state. As seen inthis example, packet 4320 will cause the TSM and TAP domains of theaddressed ACP(s) and the TSM of non-addressed ACPs to further transitionfrom the X2I to the Update-IR (UPI) state.

As seen in FIG. 43, the TDI bits of packets 4302-4320 remain low unlessthe TDI bit of a packet is inputting a JTAG instruction or data bit (D),a command bit (C), an address bit (A), or the high signal (packet 4306)that causes a transition from the Execute JTAG & Trace Operation block3408 to the Input Address & Command block 3406 at time 4340. Also theTMS bits of packets 4308-4316 remain low until the ACP's address andcommand input operation has been completed. Maintaining TMS low duringthe address and command input operation causes the ACP's mastercontroller, TSM, and any selected TAP domain to remain in the PIR state.

FIG. 44 illustrates the timing of the ACP and a selected JTAG TAP domaintransitioning through the PIR state during the Execute JTAG & TraceOperation block 3408 without invoking an address and command inputoperation. As seen, with the TDI bit of packet 4406 set low the ACP'smaster controller remains in the Execute JTAG & Trace Operation block3408 during transition through PIR state.

FIG. 45 illustrates the timing of the ACP and a selected JTAG TAP domaintransitioning to the PIR state during the Execute JTAG & Trace Operationblock 3408 and invoking an address and command input operation. As seen,with the TDI bit of packet 4506 set high the ACP's master controllertransitions to the Input Address & Command block 3406 at time 4540 toinput a new address and command. The new address and command areevaluated at time 4550. In this example, the result of the evaluation isaction 3628 which deselects the currently selected ACP(s) and JTAG TAPdomain(s). The result of the evaluation at time 4550 could result in theselection of a another ACP and JTAG TAP domain, or it could result inthe de-selection of all ACPs and JTAG TAP domains if the new address isthe previously mentioned global disconnect address.

In FIG. 45, the dotted line 4552 on the Trace signal indicates that ifthe result of the evaluation at time 4550 were action 3624 or 3626instead of action 3628, a Trace operation would be selected.

FIG. 46 illustrates a timing example of transitioning a Group ofselected ACPs and JTAG TAP domains from the Pause-DR (PDR) of FIG. 40 orPause-IR (PIR) state of FIG. 43 through the Update-DR (UPD) or Update-IR(UPI) state, respectively, to the RTI state. Passing through theUpdate-IR state allows JTAG instructions to be simultaneously updated inall Group selected JTAG TAP domain instruction registers. The ability tosimultaneously update instructions to all selected Group JTAG TAPdomains allows all the TAP domains to begin execution of theinstructions at the same time. For example, JTAG RUNBIST instructionoperations could all be enabled at the same time to allow self testoperations to occur in multiple target devices. Passing through theUpdate-DR state allows JTAG data to be simultaneously updated in allGroup selected JTAG TAP domain data registers. For example, JTAG EXTESTinstruction operations in target devices connected as shown in FIG. 29could all update boundary scan test data to interconnects 2912 fromtheir boundary scan registers at the same time.

FIG. 47 illustrates an example of performing JTAG boundary scanoperations on three target devices using the present disclosure. Thisexample illustrates the ability to locally address a target device toinput a JTAG instruction or data pattern and to group address all targetdevices to simultaneously update the JTAG instruction or data pattern asmentioned in regard to FIG. 46. In this example ACP1 is assumed to bethe DIO CLK port of target device 1 2904 of FIG. 29, ACP2 is assumed tobe the DIO CLK port of target device 2 2906 of FIG. 29, and ACP3 isassumed to be the DIO CLK port of target device N 2908 of FIG. 29. It isassumed that initially the JTAG boundary scan TAP domain of TAP domains3006 of each target device has been selected for access, all targetdevice ACPs are deselected, and that the JTAG boundary scan TAP domainsare all in the RTI state.

Steps 1 through 6 are steps used to load the JTAG EXTEST instructioninto the JTAG boundary scan TAP domains of the target devices. Steps7-12 are used to execute the EXTEST boundary scan Capture-DR, Shift-DR,and Update-DR operations.

Step 1—In the RTI state, the controller 2902 inputs the Local address ofACP1 to select ACP1, then transitions from the RTI state to perform aJTAG instruction scan operation to load the EXTEST instruction into theJTAG boundary scan TAP domain of target device 1. The instruction scanoperation ends in the Pause-IR state.

Step 2—In the Pause-IR state, the controller 2903 inputs the Globaldisconnect address to deselect ACP1, leaving the JTAG boundary scan TAPdomain in the Pause-IR state, then transitions to the RTI state. AllTSMs of ACP1-3 transition to the RTI state.

Step 3—In the RTI state, the controller 2902 inputs the Local address ofACP2 to select ACP2, then transitions from the RTI state to perform aJTAG instruction scan operation to load the EXTEST instruction into theJTAG boundary scan TAP domain of target device 2. The instruction scanoperation ends in the Pause-IR state.

Step 4—In the Pause-IR state, the controller 2903 inputs the Globaldisconnect address to deselect ACP2, leaving the JTAG boundary scan TAPdomain in the Pause-IR state, then transitions to the RTI state. AllTSMs of ACP1-3 transition to the RTI state.

Step 5—In the RTI state, the controller 2902 inputs the Local address ofACP3 to select ACP3, then transitions from the RTI state to perform aJTAG instruction scan operation to load the EXTEST instruction into theJTAG boundary scan TAP domain of target device 3. The instruction scanoperation ends in the Pause-IR state.

Step 6—In the Pause-IR state, the controller 2903 inputs the Groupaddress to select ACP1-3, then transitions the TSM and JTAG boundaryscan TAP domains through the Update-IR state to the RTI state. Passingthrough the Update-IR state causes all the EXTEST instructions in targetdevice 1-3 to be updated from the instruction registers of the JTAGboundary scan TAP domains.

Step 7—In the RTI state, the controller 2902 inputs the Local address ofACP1 to select ACP1, then transitions from the RTI state to perform aJTAG data scan operation to capture boundary scan response data into theboundary register of target device 1 during Capture-DR state then toshift the boundary register during the Shift-DR state to load boundarystimulus data and unload the captured boundary response data. Theboundary scan operation ends in the Pause-DR state.

Step 8—In the Pause-DR state, the controller 2903 inputs the Globaldisconnect address to deselect ACP1, leaving the JTAG boundary scan TAPdomain in the Pause-DR state, then transitions to the RTI state. AllTSMs of ACP1-3 transition to the RTI state.

Step 9—In the RTI state, the controller 2902 inputs the Local address ofACP2 to select ACP2, then transitions from the RTI state to perform aJTAG data scan operation to capture boundary scan response data into theboundary register of target 2 during Capture-DR state then to shift theboundary register during the Shift-DR state to load boundary stimulusdata and unload the captured boundary response data. The boundary scanoperation ends in the Pause-DR state.

Step 10—In the Pause-DR state, the controller 2903 inputs the Globaldisconnect address to deselect ACP2, leaving the JTAG boundary scan TAPdomain in the Pause-DR state, then transitions to the RTI state. AllTSMs of ACP1-3 transition to the RTI state.

Step 11—In the RTI state, the controller 2902 inputs the Local addressof ACP3 to select ACP3, then transitions from the RTI state to perform aJTAG data scan operation to capture boundary scan response data into theboundary register of target 3 during Capture-DR state then to shift theboundary register during the Shift-DR state to load boundary stimulusdata and unload the captured boundary response data. The boundary scanoperation ends in the Pause-DR state.

Step 12—In the Pause-DR state, the controller 2903 inputs the Groupaddress to select ACP1-3, then transitions the TSM and JTAG boundaryscan TAP domains of ACP1-3 through the Update-DR state to the RTI state.Passing through the Update-DR state causes all the boundary stimulusdata shifted into the boundary registers of target devices 1-3 to beupdated and applied to the boundary outputs of target devices 1-3.

Step 1—In RTI, input Local ACP1 Address to select ACP1, then executeJTAG Instruction Scan ending in Pause-IR.

Step 2—In Pause-IR, input Disconnect Address to deselect ACP1, thentransition TSM to RTI.

Step 3—In RTI, input Local ACP2 Address to select ACP2, then executeJTAG Instruction Scan ending in Pause-IR.

Step 4—In Pause-IR, input Disconnect Address to deselect ACP2, thentransition TSM to RTI.

Step 5—In RTI, input Local ACP3 Address to select ACP3, then executeJTAG Instruction Scan ending in Pause-IR.

Step 6—In Pause-IR, input Group Address to select ACP1-3, thentransition ACP1-3 through Update-IR to RTI.

Step 7—In RTI, input Local ACP1 Address to select ACP1, then executeJTAG Data Scan ending in Pause-DR.

Step 8—In Pause-DR, input Disconnect Address to deselect ACP1, thentransition TSM to RTI

Step 9—In RTI, input Local ACP2 Address to select ACP2, then executeJTAG Data Scan ending in Pause-DR.

Step 10—In Pause-DR, input Disconnect Address to deselect ACP2, thentransition TSM to RTI.

Step 11—In RTI, input Local ACP3 Address to select ACP3, then executeJTAG Data Scan ending in Pause-DR.

Step 12—In Pause-DR, input Group Address to select ACP1-3, thentransition ACP1-3 through Update-DR to RTI.

Steps 7-12 define one JTAG Capture-DR, Shift-DR, and Update-DR BoundaryScan Operation.

The boundary scan Capture-DR, Shift-DR and Update-DR operations, asdescribed in Steps 7-12, are repeated as required to test theinterconnects 2912 between the target devices 1-3 of FIG. 29.

The following FIGS. 48-58 illustrate timing diagrams of the ACP 3004 ofFIG. 30 operating to select and deselect Trace domain operations. InFIGS. 48-58, the CLK is running to; (1) input the previously describedserial TMS and TDI signal packets (shown in dotted boxes) from the INsignal to SIPO 702, (2) generate the previously described UCK toregister 704, and (3) generate the previously described TCK signal tothe TAP domains 3006 and TSM 3012. A “D” signal in a TMS and TDI packetindicates that TDI is either an JTAG instruction or data bit, a “C”signal in a packet indicates that TDI is a command bit, an “A” signal ina packet indicates that TDI is an address bit, a “0” signal in a packetindicates when TMS or TDI is low, and a “1” signal in a packet indicateswhen TMS or TDI is high. To simplify the timing examples, it is assumedthat the master controller 3010 of the ACP has been designed to includeone command (C) bit and three address (A) bits.

FIG. 48 illustrates the timing of selecting a Trace domain to perform aLocal Trace & Output operation. As the name implies, the Local Trace &Output operation comprises the step of acquiring trace data in aselected Trace domain followed by the step of outputting the acquiredtrace data from the selected Trace domain. Prior to selecting the Tracedomain, the Trace domain will have been accessed by a JTAG TAP domain,via the TDI, CTL, and TDI interface as described in regard to FIGS. 31Aand 31B, to setup and enable the Trace domain for the Trace & Outputoperation.

As described previously in timing diagrams 37-46, the ACP is operatingto input TMS and TDI packets 4802-4820 and the TSM is responding to theTMS bit of each packet to move through JTAG states of FIG. 10, duringeach TCK 4822-4838. As seen the transitions include going from the SFD/Istate to the RTI state via the X1D/I and UPD/I states. The TROUT signalfrom the Trace domain is disabled as indicated by dashed line.

At time 4840 the master controller 3010 detects the condition of the TSMbeing in the Run Test/Idle state (RTI=1) and the TDI signal being high(TDI=1). In response to this condition the master controller inputs thecommand (C) and address (A1-3) bits in packets 4808-4814. At time 4850the master controller evaluates the command and address bits andexecutes action 3624, which sets the Trace signal high. While not shownin the timing diagram of FIG. 48, action 3624 also sets the enablesignal from master controller 3010 high to enable the OE signal from TSM3012 to enable the DIO output of I/O circuit 710 when the TSM is in theShift-DR state.

In FIG. 48, the dotted line 4852 on the JTAG signal indicates that if aJTAG operation was previously selected it would become deselected attime 4850 as a result of the above mentioned action 3624.

FIG. 49 is a continuation of the timing of FIG. 48 and illustrates howthe selected Trace & Output operation is enabled when the TSM entersinto the Shift-DR (SFD) state. When the TSM transitions from theCapture-DR (CPD) state to the Shift-DR (SFD) state it sets the ShiftDRsignal high. As seen in FIG. 30, the ShiftDR signal is input to theTrace domains block 3008 to enable the Trace & Output operation of theselected Trace domain.

When the Trace & Output operation is enabled the Trace domain entersinto a first mode 4902 of operation of acquiring data. Upon entering thefirst mode 4902 of operation the TROUT output from the Trace domain isset high and remains high while data is being acquired. The high on theTROUT output is output on the DIO signal via the I/O circuit 710 andmultiplexer 3018 to be received by a controller 2902 adapted forinputting trace data. The data being acquired is typically data bus oraddress bus signal activity of a functioning circuit coupled to theTrace domain. The data being acquired is stored in a memory within theTrace domain. After the data has been acquired, the Trace domain entersinto a second mode 4904 of operation whereby the data acquired is outputfrom the Trace domain memory via the TROUT output. After the data hasbeen output, the Trace domain enters into third mode 4906 of operationwhereby the Trace domain is idle.

A detail view of the TROUT signal during the acquire data mode, theoutput data mode, and the idle mode is shown at the bottom of the timingdiagram. As mentioned, when in the Trace domain is in the acquire datamode 4902 the TROUT signal is set high. When the Trace domaintransitions to the data output mode 4904 the TROUT signal beginsoutputting frames of data. Each frame consists of a leading Header (H)bit 4908 followed by a number of data (D) bits 4910. The data frameoutput will continue as long as the Header bit of each frame is set low.The data frame output will stop when the Header bit is set high. So inthis example data frame outputs will continue until the last data frame,which has its Header bit set high. Following the last data frame, theTrace domain enters into and remains in the Idle mode 4906.

FIG. 50 is a continuation of the timing of FIG. 49 and illustrates howthe idled Trace & Output operation is deselected by transitioning theTSM from the Shift-DR (SFD) state to the RTI state so that an addressand command can be input to the master controller to initiate an actionthat sets the Trace signal low at time 5050. The action may be action3620 which will set the JTAG signal high in preparing for a JTAGoperation or action 3628 which will not set the JTAG signal high.

In referring back to the timing diagram of FIG. 49, the format of thedata frames is designed to indicate to a controller 2902 (adapted toreceive the trace output data) when the Trace domain starts the outputdata mode of operation. For example, while the Trace domain is in theacquire data mode 4902, a logic high will be output to the controllervia TROUT. When the Trace domain enters the output data mode 4904, theHeader bit 4908 of the first frame is low, causing the TROUT signal togo low. This change from high to low on the TROUT signal indicates tothe controller that the Trace domain has started the data output mode.In response the controller will start inputting the data frames. Thecontroller will continue to input data frames as long as the Header bitof each data frame is low. When the Header bit goes high, the controllerwill know that the last data frame is being sent and will stop its dataframe input mode of operation. After the controller stops receiving dataframes it can transition the TSM 3012 from the Shift-DR (SFD) state tothe RTI to deselect the Trace operation as describe in regard to FIG.50.

The use of the data frame Header bits to instruct the controller tostart, continue, and stop data frame input operations provides a verysimple method of controlling the transmission of data frames between theTrace domain and controller. Design examples for a Trace domain andcontroller for using the Header bits for starting, continuing, andstopping the data output operation will be described later in regard toFIGS. 72-74.

It is important to note in FIG. 49 that during the output data mode 4904of the present disclosure the bits of each data frame are output onTROUT at the CLK rate, not the TCK rate. Thus the TROUT data from aTrace domain can be output at twice the frequency of TDO data beingoutput from a JTAG TAP domain. This can be understood by reference toFIG. 14A-14C which shows the TDI and TDO data flowing between acontroller and a TAP domain at one half the CLK rate, i.e. at the TCKand CKIN rate.

It is also important to note that the data frames are transmitted to thecontroller while the TSM is in the Shift-DR (SFD) state and continuouslyuntil all data frames have been sent. Thus the data frames aretransmitted autonomously and without having to transition through JTAGTAP states.

FIG. 51 illustrates the timing of selecting a Trace domain to perform aGroup Trace Only operation in the Pause-DR state. As the name implies,the Group Trace Only operation comprises the step of acquiring tracedata in a group of one or more selected Trace domains. Prior toselecting the Group Trace domains, the Trace domains will have beenaccessed by a JTAG TAP domain, via the TDI, CTL, and TDI interface asdescribed in regard to FIGS. 31A and 31B, to setup and enable theselected Trace domains for the Group Trace Only operation.

As describe previously in timing diagrams 37-46, the ACP is operating toinput TMS and TDI packets 5102-5120 and the TSM is responding to the TMSbit of each packet to move through JTAG states of FIG. 10, during eachTCK 5122-5138. As seen the transitions include going from the SFD stateto the RTI state via the X1D and UPD states. Since this is a Trace Onlyoperation, the TROUT signal is disabled from outputting data, thus it isnot shown in FIG. 51.

In the PDR state, the PSE signal from the TSM goes high. At time 5140the master controller 3010 detects the condition of the TSM being in thePause-DR state (PSE=1) and the TDI signal being high (TDI=1). Inresponse to this condition the master controller inputs the command (C)and address (A1-3) bits in packets 5108-5114. At time 5150 the mastercontroller evaluates the command and address bits and executes action3626, which sets the JTAG and Enable signals low and the Trace signalhigh. At this time, all Group Trace domains that have been previouslyaccessed by a JTAG data scan operation and setup to perform Trace Onlyoperations and deselected in the Pause-DR state, as described in FIG.42, are again selected. As seen in FIG. 51 and in response to thecondition detected at time 5150, the JTAG signal goes low as the Tracesignal goes high. This indicate that as the last JTAG data scanoperation used to setup the last Trace domain of the Group becomesdeselected, the Group Trace Only operation becomes selected. When theGroup Trace domains are selected the TSM is transitioned from the PDRstate to the UPD state.

FIG. 52 is a continuation of the timing of FIG. 51 and illustrates howthe Group Trace Only operation is enabled when the TSM enters into theRTI state. When the TSM transitions into the UPD state, the setupinformation scanned into the Trace domains by a preceding JTAG data scanoperation is updated to take effect. This updating of setup informationin the Trace domains will be described in more detail later in regard toFIG. 58. From the UPD state the TSM is transitioned into the RTI stateand the RTI signal goes high. As seen in FIG. 30, the RTI signal isinput to the Trace domains block 3008 to enable the Trace Only operationof the selected Group Trace domains.

When the Trace Only operation is enabled the Group Trace domains entersinto the Group Acquire Data mode 5202 of operation. The data beingacquired is again typically data bus or address bus signal activity of afunctioning circuit coupled to the Group Trace domains. The data beingacquired is stored in a memory within each Group Trace domain.Typically, but not necessarily, each Trace domain in the Group operatesautonomously in their acquire data mode. That is to say, each Tracedomain will typically start and stop its acquisition of dataindependently of other Trace domains in the Group. An example of thisautonomous data acquisition mode of operation is shown in FIG. 52whereby Group Trace domain 1 starts at time 5204 and stops at time 5206,Group Trace domain 2 starts at time 5208 and stops at time 5210, andGroup Trace domain N starts at time 5212 and stops at time 5214.Following time 5214, all Group Trace domains have acquired their dataand the Group Trace operations enter into a Group Idle mode 5216. Thecontroller 2902 of FIG. 29 coupled to the ACPs 3004 of the targetdevices can anticipate when the Group Idle mode occurs. Alternately, anadditional signal or signals may be interfaced between the controllerand target devices to indicate to the controller when the Group Idlemode occurs.

FIG. 53 is a continuation of the timing of FIG. 52 and illustrates howthe Group Trace domains in the Group Idle mode 5216 are deselected bysetting TDI high (TDI=1) during the RTI state and inputting an addressand command to the master controller 3010 beginning at time 5340 toselect a Local JTAG operation via action 3620 at time 5350. The LocalJTAG operation starts by transitioning the TSM from the RTI to the SDRstate. The Local JTAG operation is used to select one of the Tracedomains in the Group, via an associated TAP domain, to allow the Tracedomain to be setup for a Trace Output Only operation. The Trace OutputOnly operate allows the Trace domain to output its acquired data to acontroller 2902 (adapted to receive the trace data) via the Tracedomain's TROUT output. This process of individually selecting andsetting up a Trace domain to perform a Trace Output Only operation isrepeated for each Trace domain in the Group of Trace domains thatacquired data. The following FIGS. 54-56 illustrate the timing ofperforming the Trace Output Only operation.

FIG. 54 illustrates the timing of selecting a Trace domain to perform aTrace Output Only operation. As the name implies, the Trace Output Onlyoperation comprises the step of outputting acquired trace data from aTrace domain. Prior to selecting the Trace domain, the Trace domain willhave been accessed by a JTAG TAP domain, via the TDI, CTL, and TDIinterface as described in regard to FIGS. 31A and 31B, to setup andenable the Trace Output Only operation. As can be seen, the timing ofselecting a Trace Output Only operation in FIG. 54 is very similar tothe timing of selecting a Trace & Output operation in FIG. 48.

At time 5440 the master controller 3010 detects the condition of the TSMbeing in the Run Test/Idle state (RTI=1) and the TDI signal being high(TDI=1). In response to this condition the master controller inputs thecommand (C) and address (A1-3) bits in packets 5408-5414. At time 5450the master controller evaluates the command and address bits andexecutes action 3624, which sets the Trace signal high. While not shownin the timing diagram of FIG. 54, action 3624 also sets the enablesignal from master controller 3010 high to enable the OE signal from TSM3012 to enable the DIO output of I/O circuit 710 when the TSM is in theShift-DR state.

In FIG. 54, the dotted line 5452 on the JTAG signal indicates that if aJTAG operation was previously selected it would become deselected attime 5450 as a result of the above mentioned action 3624.

FIG. 55 is a continuation of the timing of FIG. 54 and illustrates howthe selected Trace Output Only operation is enabled when the TSM entersinto the Shift-DR (SFD) state. When the TSM transitions from theCapture-DR (CPD) state to the Shift-DR (SFD) state it sets the ShiftDRsignal high. As seen in FIG. 30, the ShiftDR signal is input to theTrace domains block 3008 to enable the Trace Output Only operation ofthe selected Trace domain.

When the Trace Output Only operation is enabled the Trace domain's TROUToutput is enabled and the Trace domain enters into the Output Data mode5504. In the Output Data mode 5504 the trace data stored in the Tracedomain's memory during the previously described Trace Only operation isoutput to DIO from the TROUT output via multiplexer 3018 of FIG. 30. Thedata is output in frames, each frame having a leading Header bitfollowed by data bits as described in FIG. 49. The Header bit of eachframe is used, as previously described, to start, continue, and stop thedata output operation. After the data has been output, the Trace domainenters into an Idle mode 5506 as described in FIG. 49.

FIG. 56 is a continuation of the timing of FIG. 55 and illustrates howthe idled Trace Output Only operation is deselected by transitioning theTSM from the Shift-DR (SFD) state to the RTI state so that an addressand command can be input to the master controller 3010 to initiate anaction that sets the Trace signal low at time 5050. The action may beaction 3620 which will set the JTAG signal high, as shown in dottedline, in preparing for a JTAG operation or action 3628 which will notset the JTAG signal high. FIG. 56 is similar to FIG. 50.

FIG. 57 illustrates one example implementation of a Trace domain 5702that may exist in Trace Domains block 3008. Trace Domains block 3008 maycontain one or more of Trace domains 5702. Trace domain 5702 is designedto operate according to the timing diagrams of FIGS. 48-56. Trace domain5702 comprises a trace controller 5704, a multiplexer 5706, a dual porttrace memory 5708, a trace output circuit 5710, and a 3-state outputbuffer 5712. Trace domain 5702 is interfaced to the ACP 3004 of FIG. 30by the Trace, RTI, ShiftDR, TRCK, and TROUT signals. Trace domain 5702is interfaced to the Tap Domains block 3006 of FIG. 30 by the TDI, CTL,and TDO signals. Trace domain 5702 is connected to the data 5724,address 5720, and control 5722 buses coupled between a functionalprocessor 5716 and peripheral 5718 circuit(s). The peripheral circuit5718 could be any type of circuit (memory, DMA controller, I/Ocontroller, another processor, etc) that is capable of beingcommunicated to by the processor 5716 via the data, address, and controlbuses. The operation of the processor 5716 and peripheral circuit 5718provides a functional operation within the target device. Trace domain5702 is provided to allow non-intrusive observation and storage of thedata and/or address signal pattern flow between the processor andperipheral circuit during the functional operation.

The data, address, and control buses are interfaced to the tracecontroller 5704. The data and address buses are interfaced tomultiplexer 5706. The multiplexer 5706 receives a Select Address/Data(A/D) signal from the trace controller 5704 to select either the addressor data bus signals as input to the dual port trace memory's paralleldata input 5726.

The dual port trace memory 5708 inputs CKIN, Initialize, and CKOUTsignals from the trace controller 5704, and outputs Full and Emptysignals to the trace controller 5704. The Initialize signal is used toinitialize the dual port trace memory prior to the beginning of thetrace operation. The CKIN signal is used to control the dual port tracememory to input and store data or address signal patterns frommultiplexer 5706 via the parallel data input 5726. The Full signaloutput from the dual port trace memory is an indication to the tracecontroller 5704 that the dual port trace memory is full of data. TheCKOUT signal is used to control the dual port trace memory to outputstored data patterns to the trace output circuit 5710 via the dual porttrace memory's parallel output 5728. The Empty signal output from thedual port trace memory is an indication to the trace controller that thedual port trace memory only has one remain data pattern to be output,i.e. its a Look-Ahead-Empty indication.

FIG. 57A illustrates one example implementation of the dual port tracememory 5708. The dual port trace memory comprises a RAM Memory 5730, aninput control circuit 5732, an address Counter 5734, and an outputcontrol circuit 5736.

The Input control circuit 5732 inputs the CKIN and Initialize signalsfrom trace controller 5704 and an address bus 5738 from address Counter5734. The input control circuit 5732 outputs the Full signal to TraceController 5704, a Write signal 5742 to the RAM Memory 5730, and a countup (CU) signal 5740 to Counter 5734.

The Output Control circuit 5736 inputs the CKOUT and Initialize signalsfrom trace controller 5704 and the address bus 5738 from address Counter5734. The output control circuit 5736 outputs the Empty signal to TraceController 5704 and a count down (CD) signal 5744 to address Counter5734.

The address Counter 5734 inputs the Initialize signal from TraceController 5704, the CU signal from Input control circuit 5732, and theCD signal from Output control circuit 5736. The address Counter 5734outputs an address on address bus 5738 to the Ram Memory 5730, the Inputcontrol circuit 5732, and the Output control circuit 5736.

The RAM Memory 5730 inputs data on bus 5726 from multiplexer 5706, theWrite signal from Input Control circuit 5732, and the Address bus 5738from the address Counter. The RAM Memory 5730 outputs data on bus 5728to Trace Output Circuit 5710.

The initialization, data input, and data output operation of the dualport trace memory 5708 is as follows.

To initialize the trace memory, the Initialize signal from the TraceController 5704 is activated. In response to the activation of theInitialize signal, the counter 5734 is reset to output an address ofzero on address bus 5740 and the internal circuits of the Input Control5732 and Output Control 5736 circuits are reset, which sets theiroutputs, Write, Full, Empty, to inactive states.

To input data to the trace memory, the CKIN signal input to the InputControl circuit 5732 is enabled to cause the data on bus 5726 to bewritten into the RAM Memory. In response to each CKIN signal, the Writesignal from the Input Control circuit is activated to write data frombus 5726 into the currently addressed memory location, then the count up(CU) signal from the Input Control circuit is activated to increment theaddress Counter to produce the next address on Address bus 5738. Thisprocess of writing data to the RAM memory followed by incrementing theAddress bus is repeated during each CKIN input until the address Counter5734 reaches the RAM memory's maximum address. In response to reachingthe maximum address, the Input Control circuit sets the Full signal highand activates the Write signal during the next CKIN signal to write datainto the maximum RAM Memory address, but does not output a CU signal tothe address Counter 5734. Thus the maximum RAM Memory address remains onthe Address bus 5738. In response to the Full signal going high, theTrace Controller 5704 will disable further CKIN signals to the InputControl circuit to stop the data input operation.

To output data from the trace memory, the CKOUT signal input to theOutput Control circuit is enabled to start the data output operation.Prior to enabling the CKOUT signal, the Trace Controller enables theTrace Output circuit 5710 to do a first load and shift out operation onthe data output on bus 5728. Since the Counter 5734 contains the maximumRAM address, this first load and shift out operation shifts out the datastored in the RAM maximum memory address location. During each CKOUTinput to the Output Control circuit, the count down (CD) signal will beactivated to decrement the address bus 5738 output from address Counter5744. Each time the Address bus decrements, the data stored at that RAMaddress is output on bus 5728 to be loaded and shifted out by the TraceOutput circuit 5710. This process of decrementing the address Counterfollowed by the Trace Output circuit 5710 performing a load and shiftout operation to output the addressed data, is repeated until theaddress Counter 5734 reaches the address prior to the zero address, i.e.the one address. When the address Counter outputs the one address on bus5738, the Output Control circuit sets the Empty signal high. In responseto the Empty signal being high, the Trace Controller 5704 outputs thelast CKOUT signal to decrement address bus 5738 to the zero address,followed by controlling the Trace Output circuit 5710 to perform a lastload and shift operation to output the data at the zero addresslocation.

While the memory 5708 of FIG. 57A has been described for inputting andoutputting trace data, it could be used generally for inputting andoutputting other types of data as well.

The trace output circuit, as will be described in more detail in FIG.72, is used to output the previously mentioned data frames on the TROUTsignal. The trace output circuit 5710 has a parallel input coupled tothe parallel output 5728 of the dual port trace memory. The trace outputcircuit 5710 has a serial output coupled the input of 3-state buffer5712. The trace output circuit receives Start/Stop (S/S), Set Header,Load/Shift, and Clock signals from the trace controller 5704. The S/Ssignal is used to load a data value in the Header bit of each dataframe. The Set Header signal is used to initialize the Header bit at thebeginning of a data frame output operation. The Load/Shift signal isused to load parallel data from the dual port trace memory and seriallyshift the data out in a data frame. The Clock signal is used to time theload and shift operations.

The 3-state buffer 5712 inputs the serial output from the trace outputcircuit and a trace output enable (TROE) signal from the tracecontroller 5704. When enabled by the TROE signal, buffer 5712 output theserial output from the trace output circuit to the TROUT signal. Asmentioned in regard to FIGS. 31A and 31B, only one Trace domain 5702 maybe enabled at a time to output serial data on the TROUT signal viabuffer 5712.

As seen in FIG. 57, to facilitate the detection of the ending of thepreviously described Group Trace Only operation (by a controller 2902adapted for detecting the ending) as described in FIGS. 51-53, anoptional Idle output signal 5714 may be provided on Trace domain 5702.Each Trace domain 5702 in Trace Domains block 3008 may contain an Idleoutput signal 5714. In one embodiment, the Idle output signal 5714 fromeach Trace domain 5702 may be bussed onto a common “Wire OR'ed” globalIdle signal, using open collector/open drain type output buffers. Inanother embodiment, the Idle output signal from each Trace domain may beinput to voting logic to determine when all Trace domains are in theidle mode. The voting logic will output a global Idle signal in responseto all Trace domain being idle.

Using one of the global Idle signal embodiments mentioned above, acontroller 2902 adapted to receive the global Idle signal can determinewhen a Group of Trace domains have completed a Trace Only Operation asdescribed in FIG. 52. For example in FIG. 52, when Trace domain 1 goesidle at time 5206 it will set its Idle signal high, when Trace domain 2goes idle at time 5210 it will set its Idle signal high, and when Tracedomain N goes idle at time 5214 it will set its Idle signal high. Inresponse to all the Trace domain Idle signals being high, the globalIdle signal will go high to indicate the Global Idle mode to acontroller 2902.

FIG. 58 illustrates an example implementation of trace controller 5704.The trace controller comprises a trace command (CMD) controller 5802, anevent command (CMD) controller 5804, a scannable JTAG register (REG)5806, CMD decode circuit 5808, a FIFO 5810, and a synchronizer (SYNC)circuit 5812.

The trace command controller 5802 has the previously described input andoutput signals CKIN, Initialize, Full, Empty, CKOUT, S/S, Set Header,Load/Shift, Clock, and Idle. The trace command controller inputsadditional signals comprising a TRST signal from the JTAG CTL bus, atrigger signal from the event command controller 5804, control inputfrom the control bus 5722, trace CMD signals from decode circuit 5808, asynchronized Trace signal from SYNC circuit 5812, a synchronized RTIsignal from SYNC circuit 5812, a synchronized ShiftDR signal from SYNCcircuit 5812, and the TRCK signal. The trace command controller 5802outputs an additional event command enable (ECENA) signal to eventcommand controller 5804.

The event command controller 5804 inputs the previously described databus 5720, address bus 5724, and control bus 5722. The event commandcontroller 5804 additionally inputs the TRST signal from the JTAG CTLbus, the ECENA signal, event CMD signals from decode circuit 5808, andExpected and Mask Data (EMD) signals from FIFO 5810. The event commandcontroller additionally outputs the Trigger signal to trace commandcontroller 5802 and a next Expected and Mask Data (NXTEMD) signal toFIFO 5810. The NXTEMD signal is the FIFO clock out signal.

The JTAG REG 5806 inputs the TDI and CTL signals and outputs the TDOsignal. These signals are used to scan data into the JTAG REG during aJTAG data register scan operation. The data scanned into the JTAG REG isoutput from the JTAG REG on first 5814 and second 5816 buses. The firstbus is for inputting EMD patterns to FIFO 5810. The second bus is forinputting a command pattern to decode circuit 5808. The JTAG REG isaccessed by data scan operations to load and output data on the firstand second buses. Assuming the FIFO had a pattern memory depth of N, NJTAG data scan operations would be performed to shift in the N EMDpatterns to fill the FIFO. During the Update-DR state of each dataregister scan operation, an Update-DR signal from the CTL bus is inputto the FIFO to cause the FIFO to input the EMD pattern on the 5814. TheUpdate-DR signal is the FIFO clock in signal. When the last EMD pattern(N) is shifted into the JTAG REG and output on bus 5814, a commandpattern is also shifted into the JTAG REG and output on bus 5816. Thecommand pattern is decoded by decode circuit 5808 to provide the EventCMD, Trace CMD, and the Select A/D signals.

The SYNC circuit 5812 inputs the Trace, RTI, and ShiftDR signal from ACP3004, control signals from control bus 5722, and Bypass ShiftDR signalfrom the Trace CMD bus for Decode circuit 5808. The SYNC circuitsynchronizes the Trace, RTI, and ShiftDR signals with the control inputand outputs synchronized versions of the Trace, RTI, and ShiftDR signalsto trace command controller 5802. In the simplest case, the SYNC circuitmay simply be three FFs that are clocked by the control signals to passthe Trace, RTI, and ShiftDR outputs from the ACP on to the Trace, RTI,and ShiftDR inputs to the trace command controller 5802. Synchronizingthe Trace, RTI, and ShiftDR signals from the ACP with the controlsignals that operated the trace command controller 5802 is a betterdesign style over inputting non-synchronized Trace, RTI, and ShiftDRsignals from the ACP to the trace command controller. If the BypassShiftDR signal is set high, the SYNC circuit does not synchronize theShiftDR signal, but rather bypasses the ShiftDR signal through the SYNCcircuit 5812 to trace command controller 5802. A non-synchronizedShiftDR is preferred during Trace Output Only operations as shown inFIG. 66.

After the FIFO 5810 is filled with an appropriate number of EMD patternsand the Event CMD, Trace CMD, and Select A/D signals are set, the Tracecontroller 5704 is setup to execute a trace operation. The traceoperation is initiated when the synchronized Trace signal input to thetrace command controller 5802 goes high, as previously described in theTrace timing diagrams of FIGS. 48-56.

FIG. 59 illustrates the high level operation of the trace commandcontroller 5802. The operation of the trace command controller is timedby control inputs from control bus 5722. When the Trace input is low orin response to a TRST input, the trace command controller will be in theIdle state 5902. When the Trace input goes high, the trace commandcontroller will transition to the Decode & Enable Trace CMD state 5904.As the name implies, the Decode & Enable Trace CMD state decodes theTrace CMD input from the decode circuit 5808 and enables one of thethree types of previously described trace operations, Trace & Output,Trace Only, or Trace Output Only.

As seen in this example there are 3 types of Trace & Output CMDOperations 5906-5910, each enabled by a correspondingly numbered Enablesignal 1-3. Likewise, in this example there are 3 types of Trace Onlyoperations 5912-5916, each enabled by a correspondingly numbered Enablesignal 1-3. In this example there is only one Trace Output Onlyoperation 5918 which is enabled by a Enable signal 5920. When a Traceoperation is enabled, that operation will begin and continue until it iscompleted. When a Trace operation completes, the Trace signal is set lowto cause the trace command controller 5802 to return to the Idle state5902. In the Idle state all Enable signal outputs from Decode & EnableTrace CMD state 5904 are set low.

As seen in dotted box 5928, the Trace & Output CMDs 5906-5910 comprise aTrace section 5922 and an Output Data section 5924. The Trace section istimed by control signals from control bus 5722 so that the traceoperation is synchronized to the address and data bus being traced. TheOutput Data section is timed by the TRCK so that the data frame outputsare synchronized to the TRCK. The Trace section 5922 operates first toacquire data. When the Trace operation is completed, an enable signal5926 is set by the Trace section. The enable signal is synchronized bythe TRCK (via a synchronizing circuit 5930, such as a FF) and input tothe Output Data section 5924. The enable signal 5926 enables the OutputData section 5924 to start outputting data frames to send the acquireddata to a controller 2902 adapted to receive the data frames.

As seen the Trace Only CMDs 5912-5916 are timed only by control signalsfrom control bus 5722 since the Trace Only CMD only acquires data. Alsoas seen, the Trace Output Only CMD 5918 is timed only by the TRCK sincethe Trace Output Only CMD only outputs acquired data.

The following FIGS. 60-62 detail the operation of the Trace & Output CMD1-3 operations of FIG. 59. These Trace & Output CMD operations are setupand enabled by the Trace & Output timing diagrams shown in FIGS. 48-50.

FIG. 60 illustrates the state diagram of the Trace & Output CMD 1operation 5906. As seen, the operation consists of a Trace section 6026where data is acquired and an Output Data section 5924 where theacquired data is output to a controller 2902. Trace section 6026 is thefirst of three types of example Trace operations that can be performedin Trace section 5922 of FIG. 59. The data acquire operation is startedin response to a Trigger input and is stopped in response to the dualport trace memory 5708 outputting the Full signal.

While the Enable1 signal is low, the Trace & Output CMD 1 operation willbe in an Idle state 6002. When the Enable1 signal high the Trace &Output CMD 1 operation transitions from the Idle state 6002 to state6004. In state 6004, the Set Header & S/S signals are set low. The SetHeader signal presets the data frame Header bit 7202 of the trace outputcircuit 5710 of FIG. 72 to a logic one. The S/S signal sets the datainput to the Header bit 7202 to a logic zero. When the ShiftDR signalgoes high, the Trace & Output CMD 1 operation transitions to state 6006.When the ShiftDR signal goes high, the TROE signal of FIGS. 57-58 willbe set high to enable TROUT buffer 5702. In state 6006 the Initializesignal is activated to initialize the dual port trace memory 5708 andthe Set Header signal is set high to remove the preset condition onHeader bit 7202. From state 6006 the Trace & Output CMD 1 operationtransitions to state 6008. In state 6008, the ECENA signal is set highto enable the event command controller 5804 to start matching the dataand/or address signals on buses 5720 and 5724 against the EMD data fromthe FIFO.

When the event command controller 5804 detects a match it outputs alogic high on the Trigger input to the trace command controller 5802. Inresponse to the Trigger input going high, the Trace & Output CMD 1operation transitions to state 6010. In state 6010 the Trace & OutputCMD 1 operation enables the CKIN signal to the dual port trace memory5708. In response to each CKIN signal, a data pattern from multiplexer5706 is stored into the dual port trace memory 5708. The CKIN signaloperates synchronous with the control signals on bus 5722. Thus thestorage of data in dual port trace memory 5708 occurs synchronous to thefunctional operation of the data and address buses. As mentioned, theSelect A/D signal to multiplexer 5706 determines whether the data outputfrom the from multiplexer 5706 comes from the data bus 5724 or addressbus 5720. When the dual port trace memory fills with data, it sets theFull signal high. In response to the Full signal being high, the Trace &Output CMD 1 operation transitions to state 6012. In state 6012, theTrace & CMD 1 operation disables the CKIN signal and sets the ECENAsignal low to disable the event command controller 5804. From state6012, the Trace & Output CMD 1 operation transitions to state 6013.Entry into state 6013 stops the Trace section 6026 of the Trace & OutputCMD 1 operation. Also in state 6013 the previously mentioned enablesignal 5906 is set to enable the Output Data section 5924. The Tracesection will remain in state 6013 until the Enable1 signal goes low atthe end of the Output Data section operation 5924.

While the Trace section remains in state 6013, the overall Trace &Output CMD 1 operation continues in state 6014 to start the Data Outputsection 5924 operation. In state 6014 the Load/Shift is set high and oneClock signal is generated. In FIG. 72 it is seen that when theLoad/Shift signal is set high and a Clock signal occurs, the data frameHeader bit 7202 is loaded with the low logic level on the S/S signal,via multiplexer 7204, and the Trace data pattern from the paralleloutput 5728 of dual port trace memory 5708 is loaded into a parallelinput serial output (PISO) register 7206. In this and following examplesit is assumed that the PISO has an N bit wide parallel input forreceiving N bit wide Trace data patterns from the dual port trace memory5708.

From state 6014 the Trace & Output CMD 1 operation transitions to state6016. In state 6016 the Load/Shift signal is set low and N+1 Clocks aregenerated. As seen in FIG. 72, when the Load/Shift signal is low theHeader bit 7202 is placed in series with the N bit wide PISO 7206. ThusN+1 Clocks are required to shift out a data frame consisting of theHeader bit and the packet of N data bits in PISO 7206. When the shiftout operation of state 6016 is completed, the Trace & Output CMD 1operation will transition to state 6018. Entry into state 6018 willgenerate a CKOUT signal to cause the memory 5708 to output the nextstored trace data pattern.

If the memory 5708 is not empty (Empty=0), the Trace & Output CMD 1operation will transition from state 618 to state 6014 to repeat thestep of loading of the Header bit 7202 and PISO 7206. From state 6014the Trace & Output CMD 1 operation will transition to state 6016 torepeat the step of shifting out the Head bit and PISO. The transitionsthrough states 6014, 6016, 6018 will continue until the memory 5708 setsthe Empty signal high (Empty=1).

When the memory 5708 sets the Empty signal high (Empty=1), the Trace &Output CMD 1 operation transitions from state 6018 to state 6020 tostart the last data frame output operation. As previously mentioned, theEmpty signal is set when the memory 5708 contains only one more tracedata pattern. In state 6020 the Load/Shift and the S/S signals are sethigh and one Clock signal is generated. With Load/Shift and S/S signalshigh, the Header bit 7202 of FIG. 72 is loaded with a logic one and thePISO is loaded with that last data pattern (M) in response to the Clocksignal. As previously mentioned, a Header bit value of logic oneindicates the stopping of data frame output operations. From state 6020the Trace & Output CMD 1 operation transitions to state 6022. In state6022 the Load/Shift signal is set low and N+1 Clocks are generated toshift out the last Header and PISO bits. From state 6022 the Trace &Output CMD 1 operation transitions to the Stop state 6024 to terminatethe Trace & Output CMD 1 operation. The Trace & Output CMD 1 operationtransitions back to the Idle state 6002 when the Enable1 signal is setlow.

As shown in FIG. 72, the first through the next to last data frames areoutput on the TROUT output by transitioning through states 6014, 6016,and 6018, and the last data frame is output on the TROUT output bytransitioning through state 6018, 6020, and 6022.

FIG. 61 illustrates the state diagram of the Trace & Output CMD 2operation 5908. This operation uses an Output Data section 5924identical to that previously described in FIG. 60. The Trace section6126 of the Trace & Output CMD 2 operation is identical to the Tracesection 6026 of the Trace & Output CMD 1 operation with the followingtwo exceptions. First, the Enable2 signal from Decode & Enable Trace CMDstate 5904 is used to enable the Trace & Output CMD 2 operation. Second,state 6110 polls for the Trigger signal to go low instead of polling forthe Full signal to go high. As seen the Trace section 6126 enables thestoring of data into the dual port trace memory in response to theTrigger signal going high and disables the storing of data into the dualport trace memory in response to the Trigger signal going low. Thus theTrace operation of FIG. 61 starts and stops in response to the Triggersignal, whereas the Trace operation of FIG. 60 starts in response to theTrigger signal and stops in response to the dual port trace memoryfilling with data.

FIG. 62 illustrates the state diagram of the Trace & Output CMD 3operation 5908. This operation uses an Output Data section 5924identical to that previously described in FIG. 60. This operation isidentical to the operation of FIG. 61 up to state 6210. As seen, whenthis operation transitions from state 6210 to state 6212 the CKIN signalis disabled. When the Trigger input goes high again this operationtransitions from state 6212 to state 6214 to re-enable the CKIN signal.When the Trigger input goes low again this operation transitions fromstate 6214 to states 6216 and 6218 to terminate the Trace section 6226of this operation and enable the Output Data section 5924 as describe inFIG. 60.

As seen, the Trace section 6226 of this operation starts the storing ofdata into the dual port trace memory in state 6210 (CKIN enabled) inresponse to a first Trigger signal going high. The storing of data ispaused in state 6212 (CKIN disabled) in response to the first Triggersignal going low. The storing of data is resumed in state 6214 (CKINenabled) in response to a second Trigger signal going high. And thestoring of data is stopped in state 6216 (CKIN disabled) in response tothe second Trigger signal going low.

Command action 3624 of FIG. 36 is used during the above described Trace& Output CMD 1-3 operations. As previously described, action 3624 setsthe Trace signal high, the JTAG signal low, and the Enable signal high.The Enable signal being set high allows the TROUT data frames that occurin the Output Data section 5924 of CMDs 1-3 to be output on the DIOsignal of the ACP while the TSM is in the Shift-DR state (ShiftDR=1) asseen in FIG. 30. As seen, the Trace & Output CMD 1-3 operations of FIGS.60-61 operate autonomously to acquire data and output the acquired dataonce they are enabled and the ShiftDR signal is set high.

The following FIGS. 63-65 detail the operation of the Trace Only CMD 1-3operations of FIG. 59. These Trace Only CMD operations are setup andenabled by the Trace Only timing diagrams shown in FIGS. 51-53. Aspreviously mentioned, Trace Only operations are operations that acquiredata, but do not output the acquired data.

FIG. 63 illustrates the state diagram of the Trace Only CMD 1 operation5912. This operation is enabled by setting the Enable1 signal of FIG.59. As can be seen, this operation is similar to the Trace & Output CMD1 operation of FIG. 60. The differences between the operations of FIGS.60 and 63 are; (1) the operation of FIG. 63 does not have an Output Datasection 5924 as does the operation of FIG. 60, (2) state 6304 of theFIG. 63 operation transitions to state 6306 in response to the RTIsignal whereas state 6004 of the FIG. 60 operation transitions to state6006 in response to the ShiftDR signal, and (3) state 6312 of the FIG.63 operation transitions to a Stop & Set Idle Signal state 6314 whereasstate 6012 of the FIG. 60 operation transitions to the Stop Trace &Enable Output Data Mode state 6013. In state 6314, the previouslydescribed Idle signal 5714 of FIG. 57 is set to indicate to thecontroller that the Trace Only operation is completed. The operation ofFIG. 63 transitions from state 6314 to the Idle state 6302 when theEnable1 signal goes low.

FIG. 64 illustrates the state diagram of the Trace Only CMD 2 operation5914. This operation is enabled by setting the Enable2 signal of FIG.59. As can be seen, this operation is similar to the Trace & Output CMD2 operation of FIG. 61. The differences between the operations of FIGS.61 and 64 are; (1) the operation of FIG. 64 does not have an Output Datasection 5924 as does the operation of FIG. 61, (2) state 6404 of theFIG. 64 operation transitions to state 6406 in response to the RTIsignal whereas state 6104 of the FIG. 61 operation transitions to state6106 in response to the ShiftDR signal, and (3) state 6412 of the FIG.64 operation transitions to a Stop & Set Idle Signal state 6414 whereasstate 6112 of the FIG. 61 operation transitions to the Stop Trace &Enable Output Data Mode state 6113. The operation of FIG. 64 transitionsfrom state 6414 to the Idle state 6402 when the Enable2 signal goes low.

FIG. 65 illustrates the state diagram of the Trace Only CMD 3 operation5916. This operation is enabled by setting the Enable3 signal of FIG.59. As can be seen, this operation is similar to the Trace & Output CMD3 operation of FIG. 62. The differences between the operations of FIGS.62 and 65 are; (1) the operation of FIG. 65 does not have an Output Datasection 5924 as does the operation of FIG. 62, (2) state 6504 of theFIG. 65 operation transitions to state 6506 in response to the RTIsignal whereas state 6204 of the FIG. 62 operation transitions to state6206 in response to the ShiftDR signal, and (3) state 6516 of the FIG.65 operation transitions to a Stop & Set Idle Signal state 6518 whereasstate 6216 of the FIG. 62 operation transitions to the Stop Trace &Enable Output Data Mode state 6218. The operation of FIG. 65 transitionsfrom 6518 to the Idle state 6502 when the Enable3 signal goes low.

Command action 3626 of FIG. 36 is used during the above described TraceOnly CMD 1-3 operations. As previously described, action 3626 sets theTrace signal high, the JTAG signal low, and the Enable signal low. TheEnable signal is set low since no data is output on DIO from TROUTduring these operations. Also as seen in the Trace Only timing diagramsof FIGS. 51-53, the Trace Only operations are enabled while the TSM isin the RTI state (RTI=1). Thus during the Trace Only operations theTROUT buffer 5702 of FIG. 57 is disabled by the ShiftDR signal beinglow.

FIG. 66 details the Trace Output Only CMD operation 5918 of FIG. 59. TheTrace Output Only CMD operation is setup and enabled by the Trace OutputOnly timing diagrams shown in FIGS. 54-56. As previously mentioned, theTrace Output Only operation is an operation that outputs data that hasbeen acquired by a Trace Only operation 5912-5916. Also as previouslymentioned in FIG. 58, the Bypass ShiftDR signal is set during thisoperation mode to allow the ShiftDR signal from the ACP 3004 to bedirectly input to the Trace Command Controller 5802. This bypassoperation removes the need for a control signal from control bus 5722 toclock the ShiftDR signal to the controller 5802 via SYNC circuit 5812.

While the Enable signal 5920 of FIG. 59 is low, the Trace Output Onlyoperation 5918 will be in Idle state 6602. When the Enable signal goeshigh the operation transitions to state 6604. In state 6604 the SetHeader and S/S signals are set low. The low on the Set Header signalpresets the Header bit 7202 of FIG. 72. When the ShiftDR signal goeshigh, the operation transitions to state 6606. In state 6606 the SetHeader bit is set high to remove the preset condition on Header bit7202. From state 6606 the operation transitions to state 6608. Theoperations that occur in states 6608 through 6618 of FIG. 66 areidentical to the operations that occur in the previously described andcorresponding states 6014 through 6024 of FIG. 60. Thus no furtherdescription is required for the Trace Output Only CMD operation of FIG.66.

Command action 3624 of FIG. 36 is used during the above described TraceOutput Only CMD operation 5918. As previously described, action 3624sets the Trace signal high, the JTAG signal low, and the Enable signalhigh. The Enable signal being set high allows the data frame outputs onthe TROUT signal to be output on the DIO signal of the ACP while the TSMis in the Shift-DR state (ShiftDR=1) as seen in FIG. 30.

FIG. 67 illustrates the high level operation of the event commandcontroller 5804. The operation of the event command controller is timedby control inputs from control bus 5722, enabling it to operatesynchronous with functional transactions on the address and data buses5720, 5724. When the ECENA input from trace command controller 5802 islow or in response to a TRST input, the event command controller will bein the Idle state 6702. When the ECENA input goes high, the eventcommand controller will transition to the Decode & Enable Event CMDstate 6704. As the name implies, the Decode & Enable Event CMD statedecodes the Event CMD input from the decode circuit 5808 and enables oneof nine types of example Event CMD operations 6706-6714. These Event CMDoperations are used to detect matches between the EMD output from FIFO5810 and signal patterns appearing on the data 5724 and address 5720buses. In response to a match the Event CMD operations will inputTrigger signals to the trace command controller 5802. The Triggersignals are used to control data acquisition operations in the tracecommand controller 5802. Each Event CMD operation operates synchronousto control signals input from the functional control bus 5722.

As seen in this example, each of the nine types of Event CMD Operations6706-6714 are enabled by a correspondingly numbered Enable signal 1-9.When an Event CMD operation is enabled, it will begin and continue untilit is completed. When an Event CMD operation completes, the Tracecommand controller 5802 will set the ECENA signal low to cause the eventcommand controller 5802 to return to the Idle state 6702. In the Idlestate, all Enable signal outputs from Decode & Enable Event CMD state6704 are set low. The following FIGS. 68-71 detail the operation of theexample Event CMD operations 6706-6714.

FIG. 68 illustrates the Event CMD 1 operation 6706. The Event CMD 1operation will be disabled in the Idle state whenever the Enable1 signalis low. The Event CMD 1 operation will transition from the Idle state tothe Poll for Event 1 state when the Enable1 signal goes high.

The process of polling for an event in each of the following Event CMDoperation examples 6706-6714 comprises the step of comparing the EMDpattern output from FIFO 5810 against the functional signals appearingon the address and/or data buses 5720, 5724. The EMD pattern contains anexpected data bit for each functional data signal and an expectedaddress bit for each functional address signal. Further, the EMD patterncontains a mask bit for each data signal and each address signal. Themask bits allow masking off compare operations on selected address anddata signals so that only non-masked address and data signals are usedin detecting an event.

An example event detection circuit 7102 is shown in FIG. 71. The eventdetection circuit exists in the event command controller 5804 of FIG.58. The event detection circuit consists of mask & compare logic 7104and register 7106. The mask & compare logic has a first input port (IN1)for receiving the functional address 5720 and data 5724 bus signals, asecond input port (IN2) for receiving the EMD data output from FIFO5810, a third input port (IN3) for receiving the output from theregister 7106, and an Event output 7108 for indicating an event. TheEvent output signal in the described Event CMD operations 6706-6714 isreferred to as Event 1, Event 2, . . . Event N. The mask & compare logic7104 can be set to output a high logic level on the Event output inresponse to the following condition; (1) if the signal patterns on theIN1 and IN2 inputs are equal, (2) if the signal pattern on the IN1 inputis logically greater than the signal pattern on the IN2 input, (3) ifthe signal pattern on the IN1 input is logically lesser than the signalpattern on the IN2 input, (4) if the signal pattern on the IN1 input islogically within a window (in range) formed by the signal pattern on theIN2 input and the signal pattern on the IN3 input, and (5) if the signalpattern on the IN1 input is logically outside a window (out of range)formed by the signal pattern on the IN2 input and the signal pattern onthe IN3 input.

Returning to the Event CMD 1 operation 6706, it is seen that when theEvent 1 signal goes high in response to an “=”, “>”, or “<” condition asdescribed above, the Event CMD 1 operation transitions to the SetTrigger state and sets the Trigger input to the trace command controllerhigh. In response to the Trigger input being high the trace commandcontroller performs a data acquisition operation. Event CMD 1 operation6706 can be used to control the Trace operations of FIGS. 60 and 63.When the Trace operations of FIGS. 60 and 63 are complete, the ECENAsignal is set low which causes the Event CMD 1 operation to transitionto the Reset Trigger state to set the Trigger low, then return to theIdle state 6702 of FIG. 67. In the following Event CMD operations6707-6712 it is understood that the Event signals can be set high inresponse to an “=”, “>”, or “<” condition.

FIG. 68 illustrates the Event CMD 2 operation 6707. The Event CMD 2operation will be disabled in the Idle state whenever the Enable2 signalis low. The Event CMD 2 operation will transition from the Idle state tothe Poll for Event 1 state when the Enable2 signal goes high. When theEvent 1 signal goes high, the Event CMD 2 operation transitions to theNext EMD state. In the Next EMD state, the event command controller 5804outputs the NXTEMD signal to FIFO 5810. The NXTEMD signal causes theFIFO to output the next EMD pattern. From the Next EMD state the EventCMD 2 operation transitions to the Poll for Event 2 state. When theEvent 2 signal goes high, the Event CMD 2 operation transitions to theSet Trigger state and sets the Trigger input to the trace commandcontroller 5802 high. In response to the Trigger input being high thetrace command controller performs a data acquisition operation. EventCMD 2 operation 6707 can be used to control the Trace operations ofFIGS. 60 and 63. The difference between Event CMD 1 and 2 is that EventCMD 2 sets the Trigger following the detection of two events instead ofone event. The ability to set the Trigger in response to a sequence ofexpected events improves the ability to trace software algorithm flowsin a target device. When the Trace operations of FIGS. 60 and 63 arecomplete, the trace command controller sets the ECENA signal low whichcauses the Event CMD 2 operation to transition to the Reset Triggerstate to set the Trigger low, then return to the Idle state 6702 of FIG.67.

The Event CMD 3 operation 6708 of FIG. 68 is provided to illustrate thatthe event command controller can operate to set the Trigger signal inresponse to the detection of a sequence of N Events to start the Traceoperations of FIGS. 60 and 63. In this and other multiple eventdetection examples, the FIFO 5810 must be able to store the number ofEMD patterns used to detect a sequence of address and data signalpattern events.

FIG. 69 illustrates the Event CMD 4 operation 6709. The Event CMD 4operation will be disabled in the Idle state whenever the Enable4 signalis low. The Event CMD 4 operation will transition from the Idle state tothe Poll for Event 1 state when the Enable4 signal goes high. When theEvent 1 signal goes high, the Event CMD 4 operation transitions to theSet Trigger, Next EMD state. In the Set Trigger, Next EMD state, theevent command controller 5804 sets the Trigger output high to start adata acquisition operation in trace command controller 5802 and tooutput the NXTEMD signal to FIFO 5810 to get the next EMD pattern. Fromthe Set Trigger, Next EMD state the Event CMD 4 operation transitions tothe Poll for Event 2 state. When the Event 2 signal goes high, the EventCMD 4 operation transitions to the Reset Trigger state to set theTrigger low to stop the data acquisition operation. Event CMD 4operation 6709 can be used to control the Trace operations of FIGS. 61and 64. The ability to start and stop the acquisition of data inresponse to the Trigger signal provides improved control of how muchdata is acquired in the dual port trace memory 5708 during a traceoperation. For example, the previously described Event CMDs 1-3 use theTrigger signal to start a Trace operation and the Full signal (Full=1)of the memory 5708 to stop the Trace operation. Thus Event CMD 1-3operations always fill the memory 5708 whereas the Event CMD 4 operationdoes not have to fill the memory 5708. When the Trace operations ofFIGS. 61 and 64 are complete, the trace command controller sets theECENA signal low which causes the Event CMD 4 operation to transition tothe Idle state 6702 of FIG. 67.

The Event CMD 5 operation 6710 of FIG. 69 is provided to illustrate thatthe event command controller can operate to start and stop the Traceoperations of FIGS. 61 and 64 by setting and resetting the Triggersignal after detecting a sequence of N Events. Event CMD 5 6710 istherefore similar to Event CMD 4 6709 with the exception that Event CMD5 delays the setting and resetting of the Trigger signal until after thesequence of N events have occurred.

The Event CMD 6 operation 6711 of FIG. 70 is provided to illustrate thatthe event command controller can operate to set the Trigger signal tostart the Trace operations of FIGS. 61 and 64 following a sequence of Nevents, then reset the Trigger signal to stop the Trace operations ofFIGS. 61 and 64 following a sequence of M events. Event CMD 6 6711 istherefore similar to Event CMD 5 6710 with the exception that Event CMD6 delays the resetting of the Trigger signal until after the sequence ofM events have occurred.

The Event CMD 7 operation 6712 of FIG. 70 is provided to illustrate thatthe event command controller can detect an Event 1 to set the Triggersignal to start a Trace operation, detect an Event 2 to reset theTrigger signal to pause a Trace operation, detect an Event 3 to set theTrigger to resume a Trace operation, and detect an Event 4 to reset theTrigger to stop the Trace operation. Event CMD 7 is used to control theTrace operations of FIGS. 62 and 65.

FIG. 71 illustrates the Event CMD 8 operation 6713 which uses the “inrange” condition, described in regard to Event CMD 1 of FIG. 68, as theevent that sets the Trigger signal. The Event CMD 8 operation will bedisabled in the Idle state whenever the Enable8 signal is low. The EventCMD 8 operation will transition to the Store Current EMD state when theEnable8 signal goes high. In the Store Current EMD state, the currentEMD output from FIFO 5810 is stored in register 7104 of event detectioncircuit 7102. The Event CMD 8 operation will transition from the StoreCurrent EMD state to the Next EMD state. In the Next EMD state the eventcommand controller 5804 outputs the NXTEMD signal to cause the FIFO tooutput the next EMD pattern. From the Next EMD state the Event CMD 8operation transitions to the Poll for “In Range” state. In the Poll for“In Range” state the Event CMD 8 operation polls for the Event signal togo high. The Event signal will go high whenever a functional addressand/or data pattern occurs on the IN1 input of mask & compare logic 7104that is logically within a window bounded by the EMD pattern input onIN2 from FIFO 5810 and the EMD pattern input on IN2 from register 7106.When Event goes high the Event CMD 8 operation transitions to the SetTrigger state to set the Trigger signal high to start a Trace operation.When the Trace operation completes, the trace command controller 5802sets the ECENA signal low, causing the Event CMD 8 operation to resetthe Trigger signal and transition to the Idle state 6702 of FIG. 67.This operation is used to start a FIG. 60 or 63 Trace operation based onthe detection of an address and/or data pattern that is logically insidethe boundary of two EMD patterns.

FIG. 71 illustrates the Event CMD 9 operation 6714 which uses the “outof range” condition, described in regard to Event CMD 1 of FIG. 68, asthe event that sets the Trigger signal. The Event CMD 9 operation willbe disabled in the Idle state whenever the Enable8 signal is low. TheEvent CMD 9 operation will transition to the Store Current EMD statewhen the Enable9 signal goes high. In the Store Current EMD state, thecurrent EMD output from FIFO 5810 is stored in register 7104 of eventdetection circuit 7102. The Event CMD 9 operation will transition fromthe Store Current EMD state to the Next EMD state. In the Next EMD statethe event command controller 5804 outputs the NXTEMD signal to cause theFIFO to output the next EMD pattern. From the Next EMD state the EventCMD 9 operation transitions to the Poll for “Out of Range” state. In thePoll for “Out of Range” state the Event CMD 9 operation polls for theEvent signal to go high. The Event signal will go high whenever afunctional address and/or data pattern occurs on the IN1 input of mask &compare logic 7104 that is logically outside a window bounded by the EMDpattern input on IN2 from FIFO 5810 and the EMD pattern input on IN2from register 7106. When Event goes high the Event CMD 9 operationtransitions to the Set Trigger state to set the Trigger signal high tostart a Trace operation. When the Trace operation completes, the tracecommand controller 5802 sets the ECENA signal low, causing the Event CMD9 operation to reset the Trigger signal and transition to the Idle state6702 of FIG. 67. This operation is used to start a FIG. 60 or 63 Traceoperation based on the detection of an address and/or data pattern thatis logically outside the boundary of two EMD patterns.

In the above described Event CMD 8 and 9 operations the patterns on thedata bus 5724 may be masked off to allow the “in range” or “out ofrange” event detection to be based only on address bus 5720 patterns.Alternately, the patterns on the address bus 5720 may be masked off toallow the “in range” or “out of range” event detection to be based onlyon data bus 5720 patterns.

FIG. 72 illustrates an example of the Trace Output Circuit 5710 of FIG.57. The circuit consists of a Header bit FF 7202, a PISO register 7206,and a multiplexer 7204. When the Load/Shift signal is high and a Clockoccurs, the Header bit loads with the S/S signal logic level and thePISO loads the N bit data pattern output from dual port trace memory5708. When the Load/Shift is low and Clocks occur, the data in theHeader bit and PISO are shifted out onto the TROUT output. The Headerbit and the N PISO bits form a data frame. The circuit operates torepeatedly load and shift out data frames. The Clock signal is timed bythe TRCK signal which in turn is timed by the CLK 310 signal of the ACP3004.

As seen in FIG. 72, during a trace output operation a first data frameis output on TROUT. Subsequent data frames are output following thefirst data frame. The Header bits in the first and next to last dataframes are low. The trace output operation is complete when the lastdata frame is output on TROUT. The Header bit of the last data framewill be set high as a signal to indicate that the last data frame isbeing output on TROUT. A controller 2902 adapted to receive the dataframes will detect the Header bit of the last data frame being high andstop receiving data frames after it has received the last data frame.The data frame outputs on TROUT occur in response to the previouslydescribed Trace & Output CMD operations of FIGS. 60-62 and the TraceOutput Only CMD operation of FIG. 66.

FIG. 73 illustrates a target device 7301 comprising the ACP 3004, Tapdomains 3006, and Trace domains 3008 of the present disclosure beinginterfaced to a controller 7302 adapted for receiving trace output dataframes according to the present disclosure. The controller 7302comprises the previously described PSC circuit 302 and JTAG controllercircuit 100. Additionally, the controller 7302 comprises a TraceReceiver 7304 and a processor 7310. The processor controls the operationof the JTAG controller 100 via bus 7308 and the Trace Receiver 7304 viabus 7306. The processor 7310 is typically, but not necessarily, apersonal computer (PC) having address, data, control, interrupt, and I/Oports for interfacing with the JTAG controller 100 and Trace Receiver7304. The JTAG controller 100, Trace Receiver 7304, and PSC 302 circuitsare typically, but not necessarily, located on a printed circuit cardinserted into one of the PC's card slots. The JTAG controller 100, TraceReceiver 7304, and PSC 302 circuits could be realized on a singleintegrated circuit or on multiple integrated circuits. If desired, theprocessor 7310, JTAG controller 100, Trace Receiver 7304, and PSC 302could all be realized on a single integrated circuit.

The Trace Receiver 7304 is interfaced to the TMS and TRST signal outputsfrom the JTAG controller 100, to the TDI and CKIN outputs from the PSC302, and to the CLK signal 310. Controller 7302 can communicate to thetarget device via the DIO 308 and CLK 310 signals to address and commandthe ACP 3004 to perform JTAG or Trace operations as previouslydescribed.

When a Trace output operation is to be performed, the processor 7310enables the Trace Receiver 7304 for inputting data frames and enables aTrace domain 3008 to output data frames. When the data frame outputprocess starts, Trace domain 3008 begins outputting data frames on itsTROUT output to the DIO 308 signal of the ACP 3004. The data frames areinput to the Trace Receiver 7304 via the TDI output of PSC circuit 302.The CLK signal 310 times the data frame output operation from the TraceDomain 3008 to the Trace Receiver 7304. As previously described, thedata frame output operation occurs in the Shift-DR state and continuesuntil a logic high input occurs on the data frame Header bit 7202.

FIG. 74 illustrates a more detail example of the Trace Receiver 7304 ofcontroller 7302 of FIG. 73 coupled to the Trace Output circuit 5710 ofthe target circuit 7301 via I/O circuits 504 and 710 and the DIO signal308. As seen, the Trace Output circuit 5710 is simplified to only showthe Header bit 7202 and PISO 7206. The Trace Receiver 7304 comprises aTrace Receiver controller 7402, a TAP State Machine (TSM) 7404, a SerialInput Parallel Output (SIPO) register 7406, and a memory 7408.

The TSM 7404 inputs the TMS, CKIN, and TRST signals and outputs aShiftDR signal to the Trace Receiver Controller 7402. The TSM 7404tracks the states of the JTAG controller 100 and sets the ShiftDR signalhigh when the JTAG controller 100 is in the Shift-DR state.

The Trace Receiver controller 7402 inputs the ShiftDR signal from theTSM, the TDI signal from the I/O circuit 504 of PSC 302, and an Enablesignal from the processor 7310 via bus 7306. The Trace Receivercontroller 7402 outputs a CKIN signal to memory 7408, a Clock signal toSIPO 7406, and a Stop signal on bus 7306 to processor 7310.

The SIPO 7406 inputs the Clock signal from Trace Receiver controller7402 and the TDI signal from I/O circuit 504. The SIPO 7406 outputs aparallel data bus to the Data In bus of Memory 7408.

Memory 7408 inputs the parallel data output from SIPO 7406, the CKINsignal from Trace Receiver controller 7402, a Read/Write (R/W) controlsignal from processor 7310 via bus 7306, an Address bus from processor7310 via bus 7306, and an Initialize signal from processor 7310 via bus7306. Memory 7408 outputs parallel data on a Data Out bus to processor7310 via bus 7306.

When the R/W control input to the Memory 7408 is set for Writeoperations, parallel data from the SIPO 7406 is written into the Memoryeach time a CKIN signal is input to the Memory from the Trace ReceiverController 7402. When the R/W control input to the Memory 7408 is setfor Read operations, the processor reads data from the Memory via theData Out bus.

FIG. 75 illustrates an example design for Memory 7408. Memory 7408comprises a RAM memory 7502, an Input Control circuit 7504, an addressCounter 7506, an address multiplexer 7522, an address Decode circuit7508, and 3-state output buffers 7510.

In Input Control circuit 7504 inputs the CKIN input from Trace ReceiverController 7402 and the Initialize signal from processor 7310. The InputControl circuit outputs a Write signal to RAM memory 7502, and a countup (CU) signal to address Counter 7506.

The address Counter 7506 inputs the Initialize signal from the processor7310 and the count up (CU) signal from Input Control circuit 7504, andoutputs an address on address bus 7513 to Address Multiplexer 7522.

The Address Multiplexer 7522 inputs the address bus from counter 7506and the address bus and R/W signal from processor 7310. The AddressMultiplexer 7522 outputs one of the two address input buses to the RAMmemory 7502 via address bus 7516, in response to the R/W signal.

The Decode circuit 7508 inputs the address bus from the processor andoutputs output enable signals 7518-7520 to the RAM memory and outputbuffers 7510 respectively.

The output buffers 7510 input the Address bus 7512 from Counter 7506 andthe output enable signal 7520 from Decode circuit 7508. The outputbuffers 7510 output the Counter address to processor 7310 on the DataOut bus.

The RAM memory inputs the Data In bus from SIPO 7406, the Write signalfrom the Input Control circuit 7504, the Address bus output fromMultiplexer 7522, and the output enable (OE) signal from Decode circuit7508. The RAM memory outputs data to the processor 7310 on the Data Outbus.

The RAM data write operation of the memory is similar to that previouslydescribed in FIG. 57A. Prior to performing a data write operation, theprocessor activates the Initialize signal on bus 7306 to reset theaddress Counter 7506 to a address of zero, and sets the R/W signal suchthat the Counter address is input to the RAM memory 7502 address.Following this setup procedure, the CKIN signal from Trace ReceiverController 7402 is enabled. During each CKIN signal the Input Controlcircuit 7504 outputs a Write signal RAM Memory 7502 to write the data onthe Data In bus into the addressed memory location, then the InputControl circuit outputs a count up (CD) signal to the Counter 7506 toincrement the RAM address. This process of activating the Write signalfollowed by activating the CU signal is repeated for each subsequentCKIN input. When the CKIN input is disabled the data write operation iscomplete and the RAM will have been loaded with data from the zeroaddress location to some upper address location. When the data writeoperation stops, the Counter will contain the upper address locationwritten plus one due to the last CU signal output from Input Controlcircuit 7504.

During the RAM data read operation the processor 7310 sets the R/Wsignal to select the processors address bus 7514 to be input to the RAMmemory via multiplexer 7522. Following the setting of the R/W signal,the processor inputs an address that causes the Decoder to enable theoutput buffers 7510 so that the address output from counter 7506 may beread by the processor on the Data Out bus. By first reading thecounter's address, the processor knows how many RAM memory locationswere written too. The processor knows that the address count readexceeds the RAM memory locations written to by one, due to the last CUsignal, so the processor decrements the count value read by one. Afterdetermining the correct number of address locations written to, theprocessor starts addressing and reading the data from the RAM memorystarting with address location zero on up to the last location writtento. After the data has been read, the processor can process the data toanalyze the functional operation of the Target device and software.

In FIG. 74, the operation of the Trace Receiver controller 7402 during adata frame input operation is shown in diagram 7410. To facilitate thedescription, it is assumed that the processor 7310 has set the Enableinput to the Trace Receiver controller 7402 high and that the TraceOutput circuit 5710 of the target circuit has been set up to outputtrace data frames. Also the processor has prepared Memory 7408 for awrite operation, as described previously in regard to FIG. 75. As seenin the operation diagram 7410, with the Enable signal high, the TraceReceiver controller 7402 transitions from the Idle state 7412 to the“Poll for ShiftDR” state 7414. In the “Poll for ShiftDR” state, theTrace Receiver controller polls for the ShiftDR signal to go high, whichindicates the TSM 7404 of controller 7302 is in the Shift-DR state. Asmentioned previously in regard to FIGS. 49 and 55, trace data frameoutput operations from a Trace Domain are enabled in the Shift-DR state.

When the ShiftDR signal goes high, the Trace Receiver controllertransitions to the “Poll for Start” state 7416. In the “Poll for Start”state the Trace Receiver controller waits for the TDI input to go low,which signals the arrival of the Header bit 7202 of the first dataframe. Prior to the start of the first data frame output from the TraceDomain, the TDI input will be set high by the pull up element 1114 ofI/O circuit 710 of FIG. 11A. When TDI goes low the Trace Receivercontroller transitions to the “Shift in N Bits” state 7418. In the“Shift in N Bits” state, the Trace Receiver controller 7402 enables NClock signal inputs to SIPO 7406 to shift in the N data bits of thefirst frame. When enabled, the Clock signal is driven by the CLK input310. From the “Shift in N Bits” state the Trace Receiver controllertransitions to the “Write N Bits” state 7420. In the “Write N Bits”state the Trace Receiver controller outputs a CKIN signal to Memory 7408to write the N bit pattern shifted into SIPO 7406 to Memory 7408. As thewrite operation is taking place to memory 7408, a Load operation istaking place in Header Bit 7202 and PISO 7206 of Trace Output circuit5710, in preparation for shifting out the next data frame.

From the “Write N Bits” state, the Trace Receiver controller transitionsto the “Poll for Stop” state 7422. In the “Poll for Stop” state theTrace Receiver controller polls the logic level of TDI which is drivenby the logic level of the Header bit 7202 of the next data frame. If TDIis low, the Trace Receiver controller transitions back to the “Shift inN Bits” state 7418 to input the N data bits of the second data frame.The Trace Receiver controller loops through states 7418-7422 as long asthe TDI input is polled low in the “Poll for Stop” state 7422. When theTDI input is polled high in the “Poll for Stop” state, indicating theHeader bit 7202 is high and the last data frame is being sent, the TraceReceiver controller transitions to the “Shift in N Bits” state 7424 toshift that last N data bits into SIPO 7406. From the “Shift in N Bits”state 7424, the Trace Receiver controller transitions to the “Write NBits” state 7426 to write the last N bits shifted into SIPO 7406 toMemory 7408. From the “Write N Bits” state 7426, the Trace Receivercontroller transitions to the Stop state 7428. In the Stop state, theTrace Receiver controller sets the Stop signal on processor bus 7306high to indicate to the processor that the Trace data frame outputoperation has been completed. In response to the Stop signal, theprocessor sets the Enable signal on bus 7306 low, which causes the TraceReceiver controller to transition to the Idle state 7412.

After the Trace data frame output operation is completed, the processorcan read the data stored in memory 7408, via the memory's Data Out bus,by following the data read procedure described previously in regard toFIG. 75. The RAM memory 7502 portion of Memory 7408 should be designedsufficiently large enough to store all the data from the RAM memory 5730portion of any memory 5708.

FIG. 76 is provided to indicate that the ACP 3004 of FIG. 30 can beadapted to use separate input (OUT) 7604 and output (TDO) 7606 signalsinstead of the single DIO signal 308 if desired. In this example the I/Ocircuit 710 of FIG. 30 has been removed. The input buffer 1308 of FIG.13A is connected directly to the OUT input 7604 and the pull up element1114 of FIG. 11A is connected to the OUT input 7604. The 3-state outputbuffer 1110 of FIG. 11A is connected between the output of multiplexer3018 of FIG. 30 and the TDO output 7606. The output of gate 3014 isconnected to the enable input of output buffer 1110. The overalloperation of the modified ACP 3004 of FIG. 76 is the same as previouslydescribed.

FIG. 77 is provided to indicate that the modified ACP 3004 of FIG. 76can be interfaced to a JTAG controller 7302 that has been modified tointerface with the three signal ACP of FIG. 76. The modification of theJTAG controller 7302 includes substituting PSC 2102 of FIGS. 21A and 23Afor PSC 302 of FIG. 73, and placing a pull up element 7702 on the TDOinput 7606. The pull up element 7702 insures that the TDO input 7606will be pulled high at the beginning of the trace data frame outputoperation, i.e. prior to the “Poll for Start” state 7416 of FIG. 74.

It should be clear that the CLK signal 310 can be supplied by a clocksource within the JTAG controller as seen in FIG. 16, by a clock sourcewithin the Target device as seen in FIG. 17, or by a clock sourceexternal of the JTAG controller or Target device as seen in FIG. 20. Inany of these cases, the Target device will have a two signal interfaceif the DIO 308 signal is used, or a three signal interface if DIO 308 isreplaced by separate OUT 7604 and TDO 7606 signals as seen in FIG. 76.

Further, it should be clear that the CLK signal 310 can be supplied by afunctionally required clock input to the Target circuit as seen in FIG.18, or by a functionally required clock output from the Target circuitas seen in FIG. 19. In either of these cases, the Target device willhave a one signal interface if the DIO 308 signal is used or a twosignal interface if DIO 308 is replaced by separate OUT 7604 and TDO7606 signals as seen in FIG. 76.

In some instances, Trace domains 3008 may not be used in the presentdisclosure. If they are not used, the ACP 3004 of FIG. 30 may besimplified, as shown in FIG. 78, into an Addressable JTAG Port (AJP)7804 within a target device 7802. The differences between the ACP 3004of FIG. 30 and the AJP 7804 of FIG. 78 is the deletion of the TraceDomains 3008 of FIG. 30 and associated signal interconnects, thedeletion of the multiplexer 3018 of FIG. 30, the connection of the TDOoutput from TAP Domains 3006 to the I/O circuit 710 of FIG. 78, andminor modifications to the Master Controller 7806 and TSM 7808 of FIG.78.

FIG. 79 shows the modified TSM 7808 of FIG. 78. The modification issimply the deletion of the ShiftDR gate 3202 of FIG. 32. Without theTrace Domains 3008 the ShiftDR signal is not necessary.

FIG. 80 shows the modified Master Controller 7806 of FIG. 78. A firstmodification is the deletion of the Trace output signal and FF 3314 ofFIG. 33 since that signal is not required with the Trace Domains 3008. Asecond modification is to delete the command output of shift register3304 of FIG. 33, resulting in the new shift register 8002 of FIG. 80. Athird modification is to delete the command input signal to and theTrace output signal from the state machine 3302 of FIG. 33, resulting inthe new state machine 8004 of FIG. 80.

FIG. 81 shows the high level block operation of state machine 8004 ofFIG. 80. The operation consists of a Master Reset & Initialization block8102, an Input Address block 8104, and an Execute JTAG block 8106.

FIG. 82 shows that the Master Reset & Initialization block 8102 of FIG.81 is identical to the Master Reset & Initialization block 3402 of FIG.35 with the exception that the Trace signal is not set low in state 8108as it was in state 3502 of FIG. 35 since the Trace signal has beendeleted.

FIG. 83 shows that the Input Address block 8104 of FIG. 81 is similar tothe Input Address & Command block 3406 of FIG. 36 with the followingexceptions. The first exception is that only address bits (A1-AN) areshifted into shift register 8002 from TDI, since the command bit hasbeen deleted. The second exception is that only the address is evaluatedin the Evaluate Address state 8302 of FIG. 83 as opposed to the addressand command being evaluated in state 3618 of FIG. 36. The result of theaddress evaluation in state 8302 is one of three actions 8304, 8306, or8308. Action 8304 sets the JTAG and Enable signals high if the addressmatches the Local address and the TSM is in either the RTI or PSE state,selecting a Local JTAG operation. Action 8306 sets the JTAG signal highand the Enable signal low if the address matches the Group address andthe TSM is in the PSE state, selecting a Group JTAG operation. Action8308 sets the JTAG and Enable signals low if the address does not matcheither the Local or Group address, selecting no JTAG operation.

The Execute JTAG block 8106 of FIG. 83 is entered from the Input addressblock 8104. The Execute JTAG block 8106 is the same as the Execute JTAG& Trace Block 3408 of FIG. 36 except that only JTAG operations areperformed in the Execute JTAG block 8106, as opposed to JTAG or Traceoperations in the Execute JTAG & Trace Operation block 3408.

FIG. 84 shows the timing example of selecting a JTAG operation in theRun Test/Idle state. The timing of FIG. 84 is similar to that of FIG. 37with the exception that only address bits are input to select the JTAGoperation.

FIG. 85 shows the timing example of a selected JTAG operation passingthrough the Run Test/Idle state. The timing of FIG. 85 is identical tothat of FIG. 38 with the exception that the Trace signal has beendeleted.

FIG. 86 shows the timing example of de-selecting a JTAG operation in theRun Test/Idle state. The timing of FIG. 86 is similar to that of FIG. 39with the exception that only address bits are input to de-select theJTAG operation.

FIG. 87 shows the timing example of selecting a JTAG operation in thePause-DR state. The timing of FIG. 87 is similar to that of FIG. 40 withthe exception that only address bits are input to select the JTAGoperation.

FIG. 88 shows the timing example of a selected JTAG operation passingthrough the Pause-DR state. The timing of FIG. 88 is identical to thatof FIG. 41 with the exception that the Trace signal has been deleted.

FIG. 89 shows the timing example of de-selecting a JTAG operation in thePause-DR state. The timing of FIG. 89 is similar to that of FIG. 42 withthe exception that only address bits are input to de-select the JTAGoperation.

FIG. 90 shows the timing example of selecting a JTAG operation in thePause-IR state. The timing of FIG. 90 is similar to that of FIG. 43 withthe exception that only address bits are input to select the JTAGoperation.

FIG. 91 shows the timing example of a selected JTAG operation passingthrough the Pause-IR state. The timing of FIG. 91 is identical to thatof FIG. 44 with the exception that the Trace signal has been deleted.

FIG. 92 shows the timing example of de-selecting a JTAG operation in thePause-IR state. The timing of FIG. 92 is similar to that of FIG. 45 withthe exception that only address bits are input to de-select the JTAGoperation.

FIG. 93 shows the timing example of transitioning a selected JTAG groupfrom the Pause-IR or Pause-DR state to the Run Test/Idle state. Thetiming of FIG. 93 is identical to that of FIG. 46 with the exceptionthat the Trace signal has been deleted.

FIG. 94 is provided to show that Addressable JTAG Ports (AJPs) 7804 canbe operated to perform boundary scan testing on a plurality of targetdevices 7802, as previously described in FIG. 47 using Address & CommandPorts (ACPs).

Step 1—In RTI, input Local AJP1 Address to select AJP1, then executeJTAG Instruction Scan ending in Pause-IR.

Step 2—In Pause-IR, input Disconnect Address to deselect AJP1, thentransition TSM to RTI.

Step 3—In RTI, input Local AJP2 Address to select AJP2, then executeJTAG Instruction Scan ending in Pause-IR.

Step 4—In Pause-IR, input Disconnect Address to deselect AJP2, thentransition TSM to RTI.

Step 5—In RTI, input Local AJP3 Address to select AJP3, then executeJTAG Instruction Scan ending in Pause-IR.

Step 6—In Pause-IR, input Group Address to select AJP1-3, thentransition AJP1-3 through Update-IR to RTI.

Step 7—In RTI, input Local AJP1 Address to select AJP1, then executeJTAG Data Scan ending in Pause-DR.

Step 8—In Pause-DR, input Disconnect Address to deselect AJP1, thentransition TSM to RTI.

Step 9—In RTI, input Local AJP2 Address to select AJP2, then executeJTAG Data Scan ending in Pause-DR.

Step 10—In Pause-DR, input Disconnect Address to deselect AJP2, thentransition TSM to RTI.

Step 11—In RTI, input Local AJP3 Address to select AJP3, then executeJTAG Data Scan ending in Pause-DR.

Step 12—In Pause-DR, input Group Address to select AJP1-3, thentransition AJP1-3 through Update-DR to RTI.

Steps 7-12 define one JTAG Capture-DR, Shift-DR, and Update-DR BoundaryScan Operation.

FIG. 95 is provided to show a controller 9502 that has been modified forcommunication with a target device 7802 that uses an AJP 7804 instead ofan ACP 3004. The controller 9502 in FIG. 95 is different from controller7302 of FIG. 73 in that it does not require the Trace Receiver 7304,since the target device 7802 does not include Trace Domains 3008. Withthis exception, the controller 9502 of FIG. 95 is identical to thecontroller 7302 of FIG. 73.

FIG. 96 illustrates an AJP 9604 of a target device 9602 that has beenmodified to use a separate OUT input signal and a separate TDO outputsignal instead of the DIO signal used in AJP 7804 of FIG. 78. Themodifications to the AJP 9604 include the use of a pull up element 1114on the OUT input signal, an input buffer 1308 located between the OUTinput signal and SIPO 702, a 3-state output buffer 1110 located betweenthe TDO output of TAP domains 3006 and the TDO output signal, anddeletion of the I/O circuit 710. All these modification were previouslydescribed in regard to the modified ACP of FIG. 76.

FIG. 97 is provided to show a controller 9702 that has been modified forcommunication with the AJP 9604 of FIG. 96 using the separate OUT andTDO signals. The controller 9702 in FIG. 97 is different from controller7302 of FIG. 77 in that it does not require the Trace Receiver, sincethe target device 9602 does not include Trace Domains 3008. Also thepull up element 7702 of FIG. 77 has been removed since, without theTrace Receiver, the TDO input does not need to be pulled up unless it isdesired to do so. With these exceptions, the controller 9702 of FIG. 97is identical to the controller 7302 of FIG. 77.

Although the present disclosure has been described in detail, it shouldbe understood that various changes, substitutions and alterations may bemade without departing from the spirit and scope of the disclosure asdefined by the appended claims.

1. A process of transmitting data from a device to a controller adaptedto receive the data comprising: A. setting up the device to output dataframes, each data frame comprising a leading header bit and trailingtrace data bits; B. setting up the controller to receive the dataframes; C. enabling the device to output data frames; D. starting thecontroller to receive data frames in response to receiving a header bitcontaining a first logic level; E. continuing the controller to receivedata frames as long as the header bits of the data frames contain thefirst logic level; and F. stopping the controller from receiving furtherdata frames in response to receiving a data frame with a header bit thatcontains a logic level opposite that of the first logic level.
 2. Theprocess of claim 1 including acquiring the data frames transmit datafrom a functioning circuit within the device.
 3. The process of claim 2including acquiring the data from one of an address bus and data bus ofthe functional circuit.